pub enum CargoBuildStrategy {
Native,
Zigbuild,
Xwin,
}Expand description
Build strategy for cross-compilation.
Variants§
Native
Plain cargo build — native toolchain, no cross-compilation.
Zigbuild
cargo zigbuild — uses Zig as the C toolchain for Linux musl targets.
Xwin
cargo xwin build — uses xwin to provide MSVC CRT/SDK for Windows targets from non-Windows hosts.
Implementations§
Source§impl CargoBuildStrategy
impl CargoBuildStrategy
Sourcepub fn cargo_subcommand(&self) -> &'static str
pub fn cargo_subcommand(&self) -> &'static str
The cargo subcommand to use (e.g. “build”, “zigbuild”, “xwin”).
Sourcepub fn cargo_args(&self) -> Vec<&'static str>
pub fn cargo_args(&self) -> Vec<&'static str>
Cargo args: for xwin, the subcommand is cargo xwin build (two args).
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Human-readable name for logging.
Sourcepub fn install_package(&self) -> Option<&'static str>
pub fn install_package(&self) -> Option<&'static str>
The cargo tool binary to install (None for native builds).
Trait Implementations§
Source§impl Clone for CargoBuildStrategy
impl Clone for CargoBuildStrategy
Source§fn clone(&self) -> CargoBuildStrategy
fn clone(&self) -> CargoBuildStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CargoBuildStrategy
impl Debug for CargoBuildStrategy
Source§impl PartialEq for CargoBuildStrategy
impl PartialEq for CargoBuildStrategy
Source§fn eq(&self, other: &CargoBuildStrategy) -> bool
fn eq(&self, other: &CargoBuildStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CargoBuildStrategy
impl Eq for CargoBuildStrategy
impl StructuralPartialEq for CargoBuildStrategy
Auto Trait Implementations§
impl Freeze for CargoBuildStrategy
impl RefUnwindSafe for CargoBuildStrategy
impl Send for CargoBuildStrategy
impl Sync for CargoBuildStrategy
impl Unpin for CargoBuildStrategy
impl UnsafeUnpin for CargoBuildStrategy
impl UnwindSafe for CargoBuildStrategy
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.