File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 2020//! - [`StringList`]: Get a value that is either a list or a whitespace split
2121//! string.
2222//!
23+ //! # Config schemas
24+ //!
25+ //! Configuration schemas are defined in the [`schema`] module.
26+ //!
2327//! ## Config deserialization
2428//!
2529//! Cargo uses a two-layer deserialization approach:
Original file line number Diff line number Diff line change 1+ //! Cargo configuration schemas.
2+ //!
3+ //! This module contains types that define the schema for various configuration
4+ //! sections found in Cargo configuration.
5+ //!
6+ //! These types are mostly used by [`GlobalContext::get`](super::GlobalContext::get)
7+ //! to deserialize configuration values from TOML files, environment variables,
8+ //! and CLI arguments.
9+ //!
10+ //! Schema types here should only contain data and simple accessor methods.
11+ //! Avoid depending on [`GlobalContext`](super::GlobalContext) directly.
12+
113use std:: borrow:: Cow ;
214use std:: collections:: HashMap ;
315use std:: ffi:: OsStr ;
You can’t perform that action at this time.
0 commit comments