pub struct TargetConfig {
pub runner: OptValue<PathAndArgs>,
pub rustflags: OptValue<StringList>,
pub linker: OptValue<ConfigRelativePath>,
pub links_overrides: BTreeMap<String, BuildOutput>,
}
Expand description
Config definition of a [target]
table or [host]
.
Fields
runner: OptValue<PathAndArgs>
Process to run as a wrapper for cargo run
, test
, and bench
commands.
rustflags: OptValue<StringList>
Additional rustc flags to pass.
linker: OptValue<ConfigRelativePath>
The path of the linker for this target.
links_overrides: BTreeMap<String, BuildOutput>
Build script override for the given library name.
Any package with a links
value for the given library name will skip
running its build script and instead use the given output from the
config file.
Trait Implementations
sourceimpl Clone for TargetConfig
impl Clone for TargetConfig
sourcefn clone(&self) -> TargetConfig
fn clone(&self) -> TargetConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for TargetConfig
impl Send for TargetConfig
impl Sync for TargetConfig
impl Unpin for TargetConfig
impl UnwindSafe for TargetConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more