Struct cargo::core::profiles::Profiles [−][src]
Collection of all user profiles.
Implementations
impl Profiles
[src]
pub fn new(
profiles: Option<&TomlProfiles>,
config: &Config,
features: &Features,
warnings: &mut Vec<String>
) -> CargoResult<Profiles>
[src]
profiles: Option<&TomlProfiles>,
config: &Config,
features: &Features,
warnings: &mut Vec<String>
) -> CargoResult<Profiles>
pub fn get_profile(
&self,
pkg_id: PackageId,
is_member: bool,
unit_for: UnitFor,
mode: CompileMode,
profile_kind: ProfileKind
) -> Profile
[src]
&self,
pkg_id: PackageId,
is_member: bool,
unit_for: UnitFor,
mode: CompileMode,
profile_kind: ProfileKind
) -> Profile
Retrieves the profile for a target.
is_member
is whether or not this package is a member of the
workspace.
pub fn get_profile_run_custom_build(
&self,
for_unit_profile: &Profile
) -> Profile
[src]
&self,
for_unit_profile: &Profile
) -> Profile
The profile for running a build.rs
script is only used for setting
a few environment variables. To ensure proper de-duplication of the
running Unit
, this uses a stripped-down profile (so that unrelated
profile flags don’t cause build.rs
to needlessly run multiple
times).
pub fn base_profile(&self, profile_kind: &ProfileKind) -> CargoResult<Profile>
[src]
This returns the base profile. This is currently used for the
[Finished]
line. It is not entirely accurate, since it doesn’t
select for the package that was actually built.
pub fn get_dir_name(&self, profile_kind: &ProfileKind) -> String
[src]
pub fn validate_packages(
&self,
shell: &mut Shell,
resolve: &Resolve
) -> CargoResult<()>
[src]
&self,
shell: &mut Shell,
resolve: &Resolve
) -> CargoResult<()>
Used to check for overrides for non-existing packages.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Profiles
impl Send for Profiles
impl Sync for Profiles
impl Unpin for Profiles
impl UnwindSafe for Profiles
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,