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 ConfigReader::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 Cargoβs GlobalContext directly.
Re-exportsΒ§
use cargo_util::collections::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::paths;πuse cargo_util_schemas::manifest::ProfileName;πuse serde::Deserialize;πuse serde::Deserialize;πuse serde::Serialize;πuse serde::Serialize;πuse serde::de;πuse serde::de::Error;πuse serde_untagged::UntaggedEnumVisitor;πuse std::path::Path;πuse std::path::PathBuf;πuse anyhow::Result;πuse super::CRATES_IO_REGISTRY;πuse super::Definition;πuse super::OptValue;πuse super::Value;π
MacrosΒ§
- rel_
path π
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 - Config
Parent Relative Path - A path, potentially relative to the config, not current_dir
- Config
Root Relative Path - A path, potentially relative to the config, not current_dir
- Config
Root Relative Path Template - A path, potentially relative to the config, not current_dir
- Config
Root Relative Program Path - A path, potentially relative to the config, not current_dir
- Detailed
Include Config - Represents a config-include value in the configuration.
- 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. - Path
AndArgs - A config type that is a program to run.
- 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 - String
List - A type to deserialize a list of strings from a toml file.
- Term
Config - The
[term]table. - Toml
Profiles
EnumsΒ§
- Bracket
Type - 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 - Include
Config - 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 - Resolve
Template Error - 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