Re-exportsΒ§
use cargo_util::collections::HashMap;πuse cargo_util_terminal::report::AnnotationKind;πuse cargo_util_terminal::report::Group;πuse cargo_util_terminal::report::Level;πuse cargo_util_terminal::report::Snippet;πuse std::borrow::Cow;πuse std::cell::OnceCell;πuse std::collections::BTreeMap;πuse std::collections::BTreeSet;πuse std::ffi::OsStr;πuse std::path::Path;πuse std::path::PathBuf;πuse std::rc::Rc;πuse std::str;πuse std::str::FromStr;πuse std::sync::Arc;πuse crate::AlreadyPrintedError;πuse crate::workspace::summary::MissingDependencyError;πuse anyhow::Context as _;πuse anyhow::anyhow;πuse anyhow::bail;πuse cargo_platform::Platform;πuse cargo_util::paths;πuse cargo_util_schemas::manifest;πuse cargo_util_schemas::manifest::FeatureDefinition;πuse cargo_util_schemas::manifest::FeatureMetadata;πuse cargo_util_schemas::manifest::FeatureName;πuse cargo_util_schemas::manifest::PackageName;πuse cargo_util_schemas::manifest::PathBaseName;πuse cargo_util_schemas::manifest::TomlDependency;πuse cargo_util_schemas::manifest::TomlDetailedDependency;πuse cargo_util_schemas::manifest::TomlManifest;πuse cargo_util_schemas::manifest::TomlPackageBuild;πuse cargo_util_schemas::manifest::TomlWorkspace;πuse cargo_util_schemas::manifest::RustVersion;πuse cargo_util_schemas::manifest::StringOrBool;πuse itertools::Itertools;πuse pathdiff::diff_paths;πuse url::Url;πuse crate::compiler::CompileKind;πuse crate::compiler::CompileTarget;πuse crate::context::ConfigRelativePath;πuse crate::context::ConfigRelativePathResolveExt;πuse crate::context::TOP_LEVEL_CONFIG_KEYS;πuse crate::diagnostics::cwd_rel_path;πuse crate::diagnostics::get_key_value_span;πuse crate::resolver::ResolveBehavior;πuse crate::sources::CRATES_IO_INDEX;πuse crate::sources::CRATES_IO_REGISTRY;πuse crate::util::errors::CargoResult;πuse crate::util::errors::ManifestError;πuse crate::util::interning::InternedString;πuse crate::util;πuse crate::util::GlobalContext;πuse crate::util::IntoUrl;πuse crate::util::OnceExt;πuse crate::util::OptVersionReq;πuse crate::workspace::dependency::Artifact;πuse crate::workspace::dependency::ArtifactTarget;πuse crate::workspace::dependency::DepKind;πuse crate::workspace::manifest::ManifestMetadata;πuse crate::workspace::manifest::TargetSourcePath;πuse crate::workspace::CliUnstable;πuse crate::workspace::FeatureValue;πuse crate::workspace::Patch;πuse crate::workspace::PatchLocation;πuse crate::workspace::find_workspace_root;πuse crate::workspace::resolve_relative_path;πuse crate::workspace::Dependency;πuse crate::workspace::Manifest;πuse crate::workspace::Package;πuse crate::workspace::PackageId;πuse crate::workspace::Summary;πuse crate::workspace::Target;πuse crate::workspace::Edition;πuse crate::workspace::EitherManifest;πuse crate::workspace::Feature;πuse crate::workspace::Features;πuse crate::workspace::VirtualManifest;πuse crate::workspace::Workspace;πuse crate::workspace::GitReference;πuse crate::workspace::PackageIdSpec;πuse crate::workspace::SourceId;πuse crate::workspace::WorkspaceConfig;πuse crate::workspace::WorkspaceRootConfig;πuse self::targets::to_targets;π
ModulesΒ§
MacrosΒ§
- package_
field_ πgetter - Defines simple getter methods for inheritable fields.
StructsΒ§
- Inheritable
Fields - A group of fields that are inheritable by members of the workspace
- Manifest
Context π
ConstantsΒ§
StaticsΒ§
- EXPECTED_
LINT_ πCONFIG
TraitsΒ§
FunctionsΒ§
- config_
patch_ πto_ dependency - Transforms a
patchentry from Cargo config to aDependency. - default_
readme_ πfrom_ package_ root - Checks if a file with any of the default README file names exists in the package root.
If so, returns a
Stringrepresenting that name. - dep_
to_ πdependency - dependency_
inherit_ πwith - deprecated_
underscore π - Warn about paths that have been deprecated and may conflict.
- deprecated_
ws_ πdefault_ features - deserialize_
toml π - emit_
frontmatter_ πdiagnostic - emit_
toml_ πdiagnostic - field_
inherit_ πwith - gather_
dependencies π - inheritable_
from_ πpath - inner_
dependency_ πinherit_ with - is_
embedded - See also
bin/cargo/commands/run.rssis_manifest_command - lints_
inherit_ πwith - lints_
to_ πrustflags - load_
inheritable_ πfields - lookup_
path_ πbase - make_
document_ πowned - Transform the parsed TOML document so that all its values are owned, so that it has a βstatic lifetime, to make it easier to work with it.
- missing_
dep_ πdiagnostic - normalize_
dependencies π - normalize_
features π - normalize_
package_ πreadme - Returns the name of the README file for a
manifest::TomlPackage. - normalize_
package_ πtoml - normalize_
patch π - normalize_
path_ πdependency - normalize_
path_ πsep - normalize_
path_ string_ sep - normalize_
toml π - See
Manifest::normalized_tomlfor more details - parse_
document π - patch π
- prepare_
for_ publish - Make the
Packageself-contained so its ready for packaging - prepare_
target_ for_ publish - prepare_
targets_ for_ publish - prepare_
toml_ πfor_ publish - Prepares the manifest for publishing.
- read_
manifest - Loads a
Cargo.tomlfrom a file on disk. - read_
toml_ πstring - replace π
- stringify π
- to_
dependency_ πsource_ id - to_
real_ manifest - to_
virtual_ πmanifest - to_
workspace_ πconfig - to_
workspace_ πroot_ config - unique_
build_ πtargets - Checks a list of build targets, and ensures the target names are unique within a vector. If not, the name of the offending build target is returned.
- unused_
dep_ πkeys - validate_
dependencies π - validate_
feature_ πdefinitions - validate_
profile - Checks syntax validity and unstable feature gate for a given profile.
- validate_
profile_ πlayer - Validates a profile.
- validate_
profile_ πoverride - Validation that is specific to an override.
- validate_
profiles π - Checks syntax validity and unstable feature gate for each profile.
- verify_
lints π - warn_
on_ πunused