pub struct CliUnstable {Show 30 fields
pub print_im_a_teapot: bool,
pub unstable_options: bool,
pub no_index_update: bool,
pub avoid_dev_deps: bool,
pub minimal_versions: bool,
pub advanced_env: bool,
pub config_include: bool,
pub dual_proc_macros: bool,
pub mtime_on_use: bool,
pub named_profiles: bool,
pub binary_dep_depinfo: bool,
pub build_std: Option<Vec<String>>,
pub build_std_features: Option<Vec<String>>,
pub timings: Option<Vec<String>>,
pub doctest_xcompile: bool,
pub doctest_in_workspace: bool,
pub panic_abort_tests: bool,
pub jobserver_per_rustc: bool,
pub features: Option<Vec<String>>,
pub separate_nightlies: bool,
pub multitarget: bool,
pub rustdoc_map: bool,
pub terminal_width: Option<Option<usize>>,
pub namespaced_features: bool,
pub weak_dep_features: bool,
pub extra_link_arg: bool,
pub patch_in_config: bool,
pub credential_process: bool,
pub configurable_env: bool,
pub enable_future_incompat_feature: 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
print_im_a_teapot: bool
unstable_options: bool
no_index_update: bool
avoid_dev_deps: bool
minimal_versions: bool
advanced_env: bool
config_include: bool
dual_proc_macros: bool
mtime_on_use: bool
named_profiles: bool
binary_dep_depinfo: bool
build_std: Option<Vec<String>>
build_std_features: Option<Vec<String>>
timings: Option<Vec<String>>
doctest_xcompile: bool
doctest_in_workspace: bool
panic_abort_tests: bool
jobserver_per_rustc: bool
features: Option<Vec<String>>
separate_nightlies: bool
multitarget: bool
rustdoc_map: bool
terminal_width: Option<Option<usize>>
namespaced_features: bool
weak_dep_features: bool
extra_link_arg: bool
patch_in_config: bool
credential_process: bool
configurable_env: bool
enable_future_incompat_feature: bool
Implementations
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.
Intended to be used when a user passes a command-line flag that
requires -Z unstable-options
.
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more