[][src]Struct cargo::core::profiles::Profiles

pub struct Profiles { /* fields omitted */ }

Collection of all user profiles.

Methods

impl Profiles[src]

pub fn new(
    profiles: Option<&TomlProfiles>,
    config: &Config,
    features: &Features,
    warnings: &mut Vec<String>
) -> CargoResult<Profiles>
[src]

pub fn get_profile(
    &self,
    pkg_id: PackageId,
    is_member: bool,
    unit_for: UnitFor,
    mode: CompileMode,
    release: bool
) -> Profile
[src]

Retrieve 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]

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, release: bool) -> Profile[src]

This returns a generic 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 validate_packages(
    &self,
    shell: &mut Shell,
    packages: &PackageSet
) -> CargoResult<()>
[src]

Used to check for overrides for non-existing packages.

Trait Implementations

impl Clone for Profiles[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Profiles[src]

Auto Trait Implementations

impl Send for Profiles

impl Sync for Profiles

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self