Expand description
Cargo configuration schemas.
This module contains types that define the schema for various configuration sections found in Cargo configuration.
These types are mostly used by GlobalContext::get
to deserialize configuration values from TOML files, environment variables,
and CLI arguments.
Schema types here should only contain data and simple accessor methods.
Avoid depending on GlobalContext directly.
Re-exportsΒ§
use crate::sources::CRATES_IO_REGISTRY;πuse crate::util::data_structures::HashMap;πuse std::borrow::Cow;πuse std::ffi::OsStr;πuse std::str::FromStr;πuse std::fmt;πuse std::hash;πuse cargo_credential::Secret;πuse cargo_util_schemas::manifest::ProfileName;πuse serde::Deserialize;πuse serde::Deserialize;πuse serde::Serialize;πuse serde::Serialize;πuse serde::de;πuse serde_untagged::UntaggedEnumVisitor;πuse std::path::Path;πuse crate::CargoResult;πuse super::OptValue;πuse super::PathAndArgs;πuse super::StringList;πuse super::Value;πuse super::path::ConfigRelativePath;π
StructsΒ§
- Build
StdConfig - Configuration for
build.build-std. - Build
Target Config - Configuration for
build.target. - Cargo
Build Analysis - Metrics collection for build analysis.
- Cargo
Build Config - The
[build]table. - Cargo
Cache Config - Cargo
Future Incompat Config - The
[future-incompat-report]stable - Cargo
Http Config - The
[http]table. - Cargo
NetConfig - The
[net]table. - Cargo
NewConfig - Cargo
Resolver Config - The
[resolver]table. - Cargo
SshConfig - EnvConfig
Value - Configuration value for environment variables in
[env]section. - Global
Clean Config - Cache cleaning settings from the
cache.global-cleanconfig table. - Global
Registry Config - The
[registry]table, which has more keys than the[registries.NAME]tables. - Progress
Config - The
term.progressconfiguration. - Registry
Config [registries.NAME]tables.- Registry
Credential - Credentials for a registry.
- Rustdoc
Extern Map - A map of registry names to URLs where documentations are hosted.
This is for unstable feature
-Zrustdoc-map. - Source
Config Def - Definition of a source in a config file.
- SslVersion
Config Range - Term
Config - The
[term]table.
EnumsΒ§
- Build
StdCrates - Which standard library crates to build. Valid values are βcoreβ, βallocβ, βstdβ, or an array of crate names
- Build
StdWhen - When to build the standard library.
- Build
Target πConfig Inner - Cargo
Future Incompat Frequency Config - EnvConfig
Value πInner - Feature
Unification - Fingerprint
Method - Incompatible
Publish Age - Incompatible
Rust Versions - Jobs
Config - Configuration for
jobsinbuildsection. There are two ways to configure: An integer or a simple string expression. - Progress
When - Rustdoc
Extern Mode - Mode used for
std. This is for unstable feature-Zrustdoc-map. - SslVersion
Config - Configuration for
ssl-versioninhttpsection There are two ways to configure: - Version
Control - Warning
Handling - Whether warnings should warn, be allowed, or cause an error.
ConstantsΒ§
- DOCS_
RS_ πURL