pub struct BuildArtifactSpec {Show 15 fields
pub manifest_path: Option<PathBuf>,
pub working_dir: PathBuf,
pub package: String,
pub package_id: String,
pub artifact_name: String,
pub kind: ArtifactKind,
pub crate_type_override: Option<&'static str>,
pub target_triple: Option<String>,
pub no_default_features: bool,
pub features: Vec<String>,
pub release: bool,
pub locked: bool,
pub target_dir: Option<PathBuf>,
pub env: BTreeMap<String, String>,
pub expected_suffix: String,
}Expand description
Declarative specification for building any Cargo cdylib, staticlib, or bin artifact.
Fields§
§manifest_path: Option<PathBuf>§working_dir: PathBuf§package: String§package_id: String§artifact_name: String§kind: ArtifactKind§crate_type_override: Option<&'static str>§target_triple: Option<String>§no_default_features: bool§features: Vec<String>§release: bool§locked: bool§target_dir: Option<PathBuf>§env: BTreeMap<String, String>§expected_suffix: StringImplementations§
Source§impl BuildArtifactSpec
impl BuildArtifactSpec
Sourcepub fn cargo_args(&self) -> Vec<String>
pub fn cargo_args(&self) -> Vec<String>
Builds the cargo argument list (excluding cargo itself and --message-format=...).
Sourcepub fn cargo_args_with_rustc(&self, rustc_args: &[String]) -> Vec<String>
pub fn cargo_args_with_rustc(&self, rustc_args: &[String]) -> Vec<String>
Builds the full cargo rustc ... -- <rustc_args> argument list for display or dry-run plans.
Trait Implementations§
Source§impl Clone for BuildArtifactSpec
impl Clone for BuildArtifactSpec
Auto Trait Implementations§
impl Forget for BuildArtifactSpec
impl Freeze for BuildArtifactSpec
impl Move for BuildArtifactSpec
impl RefUnwindSafe for BuildArtifactSpec
impl Send for BuildArtifactSpec
impl Sync for BuildArtifactSpec
impl Unpin for BuildArtifactSpec
impl UnsafeUnpin for BuildArtifactSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for BuildArtifactSpec
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