Enum guppy::graph::cargo::BuildPlatform[][src]

pub enum BuildPlatform {
    Target,
    Host,
}

Either the target or the host platform.

When Cargo computes the platforms it is building on, it computes two separate build graphs: one for the target platform and one for the host. This is most useful in cross-compilation situations where the target is different from the host, but the separate graphs are computed whether or not a build cross-compiles.

A cargo check can be looked at as a kind of cross-compilation as well--machine code is generated and run for the host platform but not the target platform. This is why cargo check output usually has some lines that say Compiling (for the host platform) and some that say Checking (for the target platform).

Variants

Target

The target platform.

This represents the packages and features that are included as code in the final build artifacts.

Host

The host platform.

This represents build scripts, proc macros and other code that is run on the machine doing the compiling.

Implementations

impl BuildPlatform[src]

pub const VALUES: &'static [Self; 2][src]

A list of all possible variants of BuildPlatform.

pub fn flip(self) -> Self[src]

Returns the build platform that's not self.

Trait Implementations

impl Clone for BuildPlatform[src]

impl Copy for BuildPlatform[src]

impl Debug for BuildPlatform[src]

impl Eq for BuildPlatform[src]

impl Hash for BuildPlatform[src]

impl Ord for BuildPlatform[src]

impl PartialEq<BuildPlatform> for BuildPlatform[src]

impl PartialOrd<BuildPlatform> for BuildPlatform[src]

impl StructuralEq for BuildPlatform[src]

impl StructuralPartialEq for BuildPlatform[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

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

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> RuleType for T where
    T: Eq + Ord + Copy + Debug + Hash
[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,