pub struct NativeExecutableSpec<'a> {
pub package: &'a str,
pub target_name: &'a str,
pub target_kind: &'a str,
pub build_args: &'a [OsString],
pub max_message_bytes: usize,
}Expand description
Exact native target and caller-selected build arguments and decoding allowance.
Fields§
§package: &'a strUnique package name in the selected Cargo metadata graph.
target_name: &'a strCargo target name, without guessing an output filename.
target_kind: &'a strbin or example, selecting Cargo’s corresponding build target.
build_args: &'a [OsString]Additional build arguments, such as profile and features. Package, target, manifest, target-directory and configuration overrides are refused; select shared configuration and paths in the command factory instead. Cargo’s JSON message format is owned by this operation.
max_message_bytes: usizeMaximum metadata bytes or bytes in one Cargo JSON message, including LF. Total streamed diagnostic output and build duration have no default limit.
Auto Trait Implementations§
impl<'a> Freeze for NativeExecutableSpec<'a>
impl<'a> RefUnwindSafe for NativeExecutableSpec<'a>
impl<'a> Send for NativeExecutableSpec<'a>
impl<'a> Sync for NativeExecutableSpec<'a>
impl<'a> Unpin for NativeExecutableSpec<'a>
impl<'a> UnsafeUnpin for NativeExecutableSpec<'a>
impl<'a> UnwindSafe for NativeExecutableSpec<'a>
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