pub struct Invocation {
pub package_name: String,
pub package_version: Version,
pub target_kind: TargetKind,
pub kind: Kind,
pub deps: Vec<usize>,
pub outputs: Vec<PathBuf>,
pub links: BTreeMap<PathBuf, PathBuf>,
pub program: String,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub cwd: Option<PathBuf>,
}
Expand description
A tool invocation.
Fields§
§package_name: String
The package this invocation is building a part of.
package_version: Version
Version of the package that is being built.
target_kind: TargetKind
The kind of artifact this invocation creates.
kind: Kind
Whether the files created by this invocation are for the host or target system.
deps: Vec<usize>
List of invocations this invocation depends on.
The vector contains indices into the BuildPlan::invocations
list.
outputs: Vec<PathBuf>
List of output artifacts (binaries/libraries) created by this invocation.
links: BTreeMap<PathBuf, PathBuf>
Hardlinks of output files that should be placed.
program: String
The program to invoke.
args: Vec<String>
Arguments to pass to the program.
env: BTreeMap<String, String>
Map of environment variables.
cwd: Option<PathBuf>
The working directory in which to execute the program.
Trait Implementations§
Source§impl Debug for Invocation
impl Debug for Invocation
Source§impl<'de> Deserialize<'de> for Invocation
impl<'de> Deserialize<'de> for Invocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Invocation
impl RefUnwindSafe for Invocation
impl Send for Invocation
impl Sync for Invocation
impl Unpin for Invocation
impl UnwindSafe for Invocation
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