Skip to main content

Module schema

Module schema 

Source
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.

Structsยง

BuildTargetConfig
Configuration for build.target.
CargoBuildAnalysis
Metrics collection for build analysis.
CargoBuildConfig
The [build] table.
CargoCacheConfig
CargoFutureIncompatConfig
The [future-incompat-report] stable
CargoHttpConfig
The [http] table.
CargoNetConfig
The [net] table.
CargoNewConfig
CargoResolverConfig
The [resolver] table.
CargoSshConfig
EnvConfigValue
Configuration value for environment variables in [env] section.
GlobalCleanConfig
Cache cleaning settings from the cache.global-clean config table.
GlobalRegistryConfig
The [registry] table, which has more keys than the [registries.NAME] tables.
ProgressConfig
The term.progress configuration.
RegistryConfig
[registries.NAME] tables.
RustdocExternMap
A map of registry names to URLs where documentations are hosted. This is for unstable feature -Zrustdoc-map.
SourceConfigDef
Definition of a source in a config file.
SslVersionConfigRange
TermConfig
The [term] table.

Enumsยง

BuildTargetConfigInner ๐Ÿ”’
CargoFutureIncompatFrequencyConfig
EnvConfigValueInner ๐Ÿ”’
FeatureUnification
FingerprintMethod
IncompatiblePublishAge
IncompatibleRustVersions
JobsConfig
Configuration for jobs in build section. There are two ways to configure: An integer or a simple string expression.
ProgressWhen
RustdocExternMode
Mode used for std. This is for unstable feature -Zrustdoc-map.
SslVersionConfig
Configuration for ssl-version in http section There are two ways to configure:
VersionControl
WarningHandling
Whether warnings should warn, be allowed, or cause an error.

Constantsยง

DOCS_RS_URL ๐Ÿ”’

Functionsยง

default_crates_io_to_docs_rs ๐Ÿ”’

Type Aliasesยง

EnvConfig