pub enum InitialsPlatform {
Host,
Standard,
ProcMacrosOnTarget,
}Expand description
For a given Cargo build simulation, what platform to assume the initials are being built on.
Variants§
Host
Assume that the initials are being built on the host platform.
This is most useful for “continuing” simulations, where it is already known that some packages are being built on the host and one wishes to find their dependencies.
Standard
Assume a standard build.
In this mode, all initials other than proc-macros are built on the target platform. Proc- macros, being compiler plugins, are built on the host.
This is the default for InitialsPlatform.
ProcMacrosOnTarget
Perform a standard build, and also build proc-macros on the target.
Proc-macro crates may include tests, which are run on the target platform. This option is most useful for such situations.
Trait Implementations§
Source§impl Clone for InitialsPlatform
impl Clone for InitialsPlatform
Source§fn clone(&self) -> InitialsPlatform
fn clone(&self) -> InitialsPlatform
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InitialsPlatform
impl Debug for InitialsPlatform
Source§impl Default for InitialsPlatform
The default for InitialsPlatform: the Standard option.
impl Default for InitialsPlatform
The default for InitialsPlatform: the Standard option.
Source§impl<'de> Deserialize<'de> for InitialsPlatform
impl<'de> Deserialize<'de> for InitialsPlatform
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for InitialsPlatform
impl Hash for InitialsPlatform
Source§impl PartialEq for InitialsPlatform
impl PartialEq for InitialsPlatform
Source§impl Serialize for InitialsPlatform
impl Serialize for InitialsPlatform
impl Copy for InitialsPlatform
impl Eq for InitialsPlatform
impl StructuralPartialEq for InitialsPlatform
Auto Trait Implementations§
impl Freeze for InitialsPlatform
impl RefUnwindSafe for InitialsPlatform
impl Send for InitialsPlatform
impl Sync for InitialsPlatform
impl Unpin for InitialsPlatform
impl UnwindSafe for InitialsPlatform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more