Struct artifact_dependency::ArtifactDependency
source · pub struct ArtifactDependency {
pub workspace_root: Option<PathBuf>,
pub crate_name: Option<String>,
pub artifact_type: CrateType,
pub profile: Option<Profile>,
pub build_missing: bool,
pub build_always: bool,
pub features: Vec<String>,
pub target_name: String,
pub capture_output: bool,
}Expand description
Builder to find and optionally build an artifact dependency from a particular workspace
Fields§
§workspace_root: Option<PathBuf>Workspace root to search for an artifact dependency in. Defaults to the current workspace if one is not provided.
crate_name: Option<String>Crate name to search for an artifact dependency for. Defaults to CARGO_PKG_NAME if it
is set, otherwise the root package name in the workspace. If neither are set, an error
will be returned.
artifact_type: CrateTypeType of artifact to build.
profile: Option<Profile>Profile, defaults to the current profile
build_missing: boolBuild the artifact if it is missing
build_always: bool(Re-)build the artifact even if it is not missing. This is the default because otherwise it’s very common to have a “what is going on why aren’t my print statements showing up” moment
features: Vec<String>§target_name: String§capture_output: boolImplementations§
source§impl ArtifactDependency
impl ArtifactDependency
sourcepub fn builder(
) -> ArtifactDependencyBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> ArtifactDependencyBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building ArtifactDependency.
On the builder, call .workspace_root(...)(optional), .crate_name(...)(optional), .artifact_type(...), .profile(...)(optional), .build_missing(...), .build_always(...)(optional), .features(...)(optional), .target_name(...), .capture_output(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ArtifactDependency.
Trait Implementations§
source§impl Clone for ArtifactDependency
impl Clone for ArtifactDependency
source§fn clone(&self) -> ArtifactDependency
fn clone(&self) -> ArtifactDependency
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more