pub struct LinkAction {
pub linker: Utf8PathBuf,
pub output: Utf8PathBuf,
pub inputs: Vec<Utf8PathBuf>,
pub implicit_inputs: Vec<Utf8PathBuf>,
pub arguments: Vec<String>,
pub link_libs: Vec<String>,
pub description: String,
}Expand description
Link objects and static archives into an executable.
Fields§
§linker: Utf8PathBufLink-driver executable (the C or C++ compiler, chosen per target by the planner).
output: Utf8PathBufExecutable to produce.
inputs: Vec<Utf8PathBuf>Link inputs (objects then static archives), in link order.
implicit_inputs: Vec<Utf8PathBuf>Inputs the link depends on but that are not command arguments.
arguments: Vec<String>Extra linker flags (ldflags), inserted after the inputs and
before the output spelling.
link_libs: Vec<String>System libraries to link, as bare names (e.g. pthread, m).
Lowered per-dialect - -l<name> for GNU-like, <name>.lib for
MSVC - and placed after the archive inputs so a static library’s
required system libraries resolve left-to-right on the GNU link
line. Kept separate from arguments (raw ldflags) precisely so
the dialect layer owns the spelling rather than the planner.
description: StringHuman-readable description (LINK app).
Trait Implementations§
Source§impl Clone for LinkAction
impl Clone for LinkAction
Source§fn clone(&self) -> LinkAction
fn clone(&self) -> LinkAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LinkAction
impl Debug for LinkAction
impl Eq for LinkAction
Source§impl PartialEq for LinkAction
impl PartialEq for LinkAction
Source§fn eq(&self, other: &LinkAction) -> bool
fn eq(&self, other: &LinkAction) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinkAction
Auto Trait Implementations§
impl Freeze for LinkAction
impl RefUnwindSafe for LinkAction
impl Send for LinkAction
impl Sync for LinkAction
impl Unpin for LinkAction
impl UnsafeUnpin for LinkAction
impl UnwindSafe for LinkAction
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,
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
key and return true if they are equal.