Skip to main content

Module cargo_metadata

Module cargo_metadata 

Source

Re-exportsยง

use crate::compiler::artifact::match_artifacts_kind_with_targets; ๐Ÿ”’
use crate::compiler::CompileKind; ๐Ÿ”’
use crate::compiler::CompileKindFallback; ๐Ÿ”’
use crate::compiler::RustcTargetData; ๐Ÿ”’
use crate::ops; ๐Ÿ”’
use crate::ops::Packages; ๐Ÿ”’
use crate::resolver::HasDevUnits; ๐Ÿ”’
use crate::resolver::Resolve; ๐Ÿ”’
use crate::resolver::features::CliFeatures; ๐Ÿ”’
use crate::util::CargoResult; ๐Ÿ”’
use crate::util::interning::InternedString; ๐Ÿ”’
use crate::workspace::dependency::DepKind; ๐Ÿ”’
use crate::workspace::package::SerializedPackage; ๐Ÿ”’
use crate::workspace::Package; ๐Ÿ”’
use crate::workspace::PackageId; ๐Ÿ”’
use crate::workspace::PackageIdSpec; ๐Ÿ”’
use crate::workspace::Workspace; ๐Ÿ”’
use cargo_platform::Platform; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use std::collections::BTreeMap; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’

Structsยง

Dep ๐Ÿ”’
DepKindInfo ๐Ÿ”’
ExportInfo
This is the structure that is serialized and displayed to the user.
MetadataResolve ๐Ÿ”’
MetadataResolveNode ๐Ÿ”’
OutputMetadataOptions

Constantsยง

VERSION ๐Ÿ”’

Functionsยง

build_resolve_graph ๐Ÿ”’
Builds the resolve graph as it will be displayed to the user.
build_resolve_graph_r ๐Ÿ”’
output_metadata
Loads the manifest, resolves the dependencies of the package to the concrete used versions - considering overrides - and writes all dependencies in a JSON format to stdout.