Enum guppy::graph::cargo::BuildPlatform [−][src]
pub enum BuildPlatform {
Target,
Host,
}
Expand description
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
The target platform.
This represents the packages and features that are included as code in the final build artifacts.
The host platform.
This represents build scripts, proc macros and other code that is run on the machine doing the compiling.
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for BuildPlatform
impl Send for BuildPlatform
impl Sync for BuildPlatform
impl Unpin for BuildPlatform
impl UnwindSafe for BuildPlatform
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.