Struct ra_ap_project_model::CargoConfig
source · [−]pub struct CargoConfig {
pub no_default_features: bool,
pub all_features: bool,
pub features: Vec<String>,
pub target: Option<String>,
pub no_sysroot: bool,
pub rustc_source: Option<RustcSource>,
pub unset_test_crates: UnsetTestCrates,
pub wrap_rustc_in_build_scripts: bool,
}
Fields
no_default_features: bool
Do not activate the default
feature.
all_features: bool
Activate all available features
features: Vec<String>
List of features to activate.
This will be ignored if cargo_all_features
is true.
target: Option<String>
rustc target
no_sysroot: bool
Don’t load sysroot crates (std
, core
& friends). Might be useful
when debugging isolated issues.
rustc_source: Option<RustcSource>
rustc private crate source
unset_test_crates: UnsetTestCrates
crates to disable #[cfg(test)]
on
wrap_rustc_in_build_scripts: bool
Implementations
sourceimpl CargoConfig
impl CargoConfig
pub fn cfg_overrides(&self) -> CfgOverrides
Trait Implementations
sourceimpl Clone for CargoConfig
impl Clone for CargoConfig
sourcefn clone(&self) -> CargoConfig
fn clone(&self) -> CargoConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CargoConfig
impl Debug for CargoConfig
sourceimpl Default for CargoConfig
impl Default for CargoConfig
sourcefn default() -> CargoConfig
fn default() -> CargoConfig
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CargoConfig> for CargoConfig
impl PartialEq<CargoConfig> for CargoConfig
sourcefn eq(&self, other: &CargoConfig) -> bool
fn eq(&self, other: &CargoConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CargoConfig) -> bool
fn ne(&self, other: &CargoConfig) -> bool
This method tests for !=
.
impl Eq for CargoConfig
impl StructuralEq for CargoConfig
impl StructuralPartialEq for CargoConfig
Auto Trait Implementations
impl RefUnwindSafe for CargoConfig
impl Send for CargoConfig
impl Sync for CargoConfig
impl Unpin for CargoConfig
impl UnwindSafe for CargoConfig
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more