pub struct CliUnstable {Show 30 fields
pub allow_features: Option<BTreeSet<String>>,
pub print_im_a_teapot: bool,
pub advanced_env: bool,
pub avoid_dev_deps: bool,
pub binary_dep_depinfo: bool,
pub bindeps: bool,
pub build_std: Option<Vec<String>>,
pub build_std_features: Option<Vec<String>>,
pub config_include: bool,
pub credential_process: bool,
pub check_cfg: Option<(bool, bool, bool)>,
pub doctest_in_workspace: bool,
pub doctest_xcompile: bool,
pub dual_proc_macros: bool,
pub features: Option<Vec<String>>,
pub jobserver_per_rustc: bool,
pub minimal_versions: bool,
pub mtime_on_use: bool,
pub multitarget: bool,
pub no_index_update: bool,
pub panic_abort_tests: bool,
pub host_config: bool,
pub http_registry: bool,
pub target_applies_to_host: bool,
pub rustdoc_map: bool,
pub separate_nightlies: bool,
pub terminal_width: Option<Option<usize>>,
pub unstable_options: bool,
pub rustdoc_scrape_examples: Option<String>,
pub skip_rustdoc_fingerprint: bool,
}
Expand description
A parsed representation of all unstable flags that Cargo accepts.
Cargo, like rustc
, accepts a suite of -Z
flags which are intended for
gating unstable functionality to Cargo. These flags are only available on
the nightly channel of Cargo.
Fields
allow_features: Option<BTreeSet<String>>
print_im_a_teapot: bool
advanced_env: bool
avoid_dev_deps: bool
binary_dep_depinfo: bool
bindeps: bool
build_std: Option<Vec<String>>
build_std_features: Option<Vec<String>>
config_include: bool
credential_process: bool
check_cfg: Option<(bool, bool, bool)>
doctest_in_workspace: bool
doctest_xcompile: bool
dual_proc_macros: bool
features: Option<Vec<String>>
jobserver_per_rustc: bool
minimal_versions: bool
mtime_on_use: bool
multitarget: bool
no_index_update: bool
panic_abort_tests: bool
host_config: bool
http_registry: bool
target_applies_to_host: bool
rustdoc_map: bool
separate_nightlies: bool
terminal_width: Option<Option<usize>>
unstable_options: bool
rustdoc_scrape_examples: Option<String>
skip_rustdoc_fingerprint: bool
Implementations
sourceimpl CliUnstable
impl CliUnstable
sourceimpl CliUnstable
impl CliUnstable
pub fn parse(
&mut self,
flags: &[String],
nightly_features_allowed: bool
) -> CargoResult<Vec<String>>
sourcepub fn fail_if_stable_opt(&self, flag: &str, issue: u32) -> CargoResult<()>
pub fn fail_if_stable_opt(&self, flag: &str, issue: u32) -> CargoResult<()>
Generates an error if -Z unstable-options
was not used for a new,
unstable command-line flag.
sourcepub fn fail_if_stable_command(
&self,
config: &Config,
command: &str,
issue: u32
) -> CargoResult<()>
pub fn fail_if_stable_command(
&self,
config: &Config,
command: &str,
issue: u32
) -> CargoResult<()>
Generates an error if -Z unstable-options
was not used for a new,
unstable subcommand.
Trait Implementations
sourceimpl Debug for CliUnstable
impl Debug for CliUnstable
sourceimpl Default for CliUnstable
impl Default for CliUnstable
sourcefn default() -> CliUnstable
fn default() -> CliUnstable
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CliUnstable where
CliUnstable: Default,
impl<'de> Deserialize<'de> for CliUnstable where
CliUnstable: Default,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for CliUnstable
impl Send for CliUnstable
impl Sync for CliUnstable
impl Unpin for CliUnstable
impl UnwindSafe for CliUnstable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more