Struct cargo::ops::Compilation [] [src]

pub struct Compilation<'cfg> {
    pub libraries: HashMap<PackageId, HashSet<(Target, PathBuf)>>,
    pub tests: Vec<(Package, TargetKind, String, PathBuf)>,
    pub binaries: Vec<PathBuf>,
    pub native_dirs: HashSet<PathBuf>,
    pub root_output: PathBuf,
    pub deps_output: PathBuf,
    pub plugins_dylib_path: PathBuf,
    pub host_dylib_path: Option<PathBuf>,
    pub target_dylib_path: Option<PathBuf>,
    pub extra_env: HashMap<PackageId, Vec<(String, String)>>,
    pub to_doc_test: Vec<Package>,
    pub cfgs: HashMap<PackageId, HashSet<String>>,
    pub target: String,
    // some fields omitted
}

A structure returning the result of a compilation.

Fields

A mapping from a package to the list of libraries that need to be linked when working with that package.

An array of all tests created during this compilation.

An array of all binaries created.

All directories for the output of native build commands.

This is currently used to drive some entries which are added to the LD_LIBRARY_PATH as appropriate.

Root output directory (for the local package's artifacts)

Output directory for rust dependencies

Library search path for compiler plugins and build scripts which have dynamic dependencies.

The path to rustc's own libstd

The path to libstd for the target

Extra environment variables that were passed to compilations and should be passed to future invocations of programs.

Features per package enabled during this compilation.

Methods

impl<'cfg> Compilation<'cfg>
[src]

See process.

See process.

See process.

See process.