pub struct CaptureShims {
pub rustc_shim: PathBuf,
pub linker_shim: PathBuf,
pub rustc_cache_dir: PathBuf,
pub linker_cache_dir: PathBuf,
pub real_linker: PathBuf,
pub target_triple: Option<String>,
}Expand description
Shim wiring that turns a plain cargo invocation into a Tier 1
fat build. All paths are absolute; the dev-server creates the
cache dirs on demand. real_linker is what the linker shim
forwards to (typically the same cc/clang cargo would have
used).
target_triple is the Rust target triple the user code will
compile for. When set, the linker shim is installed only for
that triple via cargo’s CARGO_TARGET_<UPPER>_LINKER env var —
host-only artifacts (build scripts, proc-macros) keep their
default linker. When None, the shim is installed globally via
RUSTFLAGS=-Clinker=… (fine for host-only Tier 1 setups).
Fields§
§rustc_shim: PathBuf§linker_shim: PathBuf§rustc_cache_dir: PathBuf§linker_cache_dir: PathBuf§real_linker: PathBuf§target_triple: Option<String>Trait Implementations§
Source§impl Clone for CaptureShims
impl Clone for CaptureShims
Source§fn clone(&self) -> CaptureShims
fn clone(&self) -> CaptureShims
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 CaptureShims
impl Debug for CaptureShims
impl Eq for CaptureShims
Source§impl PartialEq for CaptureShims
impl PartialEq for CaptureShims
Source§fn eq(&self, other: &CaptureShims) -> bool
fn eq(&self, other: &CaptureShims) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CaptureShims
Auto Trait Implementations§
impl Freeze for CaptureShims
impl RefUnwindSafe for CaptureShims
impl Send for CaptureShims
impl Sync for CaptureShims
impl Unpin for CaptureShims
impl UnsafeUnpin for CaptureShims
impl UnwindSafe for CaptureShims
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.