pub struct AdapterCtx {
pub workspace_root: PathBuf,
pub target: Option<String>,
}Expand description
Context every adapter verb receives. Captures workspace root + optional target filter. Extending this struct is non-breaking because verbs take it by reference.
Fields§
§workspace_root: PathBufWorkspace root directory. The manifest_files entry lives at
${workspace_root}/${manifest_files()[i]}.
target: Option<String>Optional target predicate (e.g. aarch64-apple-darwin). When
Some, the adapter restricts the resolve graph to deps
active for that target.
Trait Implementations§
Source§impl Clone for AdapterCtx
impl Clone for AdapterCtx
Source§fn clone(&self) -> AdapterCtx
fn clone(&self) -> AdapterCtx
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 moreAuto Trait Implementations§
impl Freeze for AdapterCtx
impl RefUnwindSafe for AdapterCtx
impl Send for AdapterCtx
impl Sync for AdapterCtx
impl Unpin for AdapterCtx
impl UnsafeUnpin for AdapterCtx
impl UnwindSafe for AdapterCtx
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