Skip to main content

Module artifact

Module artifact 

Source
Expand description

Generate artifact information from unit dependencies for configuring the compiler environment.

Re-exportsยง

use cargo_util_schemas::core::CrateType; ๐Ÿ”’
use crate::CargoResult; ๐Ÿ”’
use crate::compiler::unit_graph::UnitDep; ๐Ÿ”’
use crate::compiler::BuildRunner; ๐Ÿ”’
use crate::compiler::FileFlavor; ๐Ÿ”’
use crate::compiler::Unit; ๐Ÿ”’
use crate::workspace::dependency::ArtifactKind; ๐Ÿ”’
use crate::workspace::Dependency; ๐Ÿ”’
use crate::workspace::Target; ๐Ÿ”’
use crate::workspace::TargetKind; ๐Ÿ”’
use cargo_util::collections::HashMap; ๐Ÿ”’
use cargo_util::collections::HashSet; ๐Ÿ”’
use std::ffi::OsString; ๐Ÿ”’

Functionsยง

get_env
Return all environment variables for the given unit-dependencies if artifacts are present.
match_artifacts_kind_with_targets ๐Ÿ”’
Given a dependency with an artifact artifact_dep and a set of available targets of its package, find a target for each kind of artifacts that are to be built.
unit_artifact_type_name_upper ๐Ÿ”’