Expand description
Cargo.toml / Manifest schema definition
Β§Style
- Fields duplicated for an alias will have an accessor with the primary fieldβs name
- Keys that exist for bookkeeping but donβt correspond to the schema have a
_prefix
Re-exportsΒ§
use std::collections::BTreeMap;πuse std::collections::BTreeSet;πuse std::fmt;πuse std::fmt::Display;πuse std::fmt::Write;πuse std::path::PathBuf;πuse std::str;πuse serde::de;πuse serde::de::IntoDeserializer as _;πuse serde::de::Unexpected;πuse serde::ser;πuse serde::Deserialize;πuse serde::Deserialize;πuse serde::Serialize;πuse serde::Serialize;πuse serde_untagged::UntaggedEnumVisitor;πuse crate::core::PackageIdSpec;πuse crate::restricted_names;πpub use crate::restricted_names::NameValidationError;pub use rust_version::RustVersion;pub use rust_version::RustVersionError;
ModulesΒ§
- rust_
version π
MacrosΒ§
- str_
newtype π
StructsΒ§
- Feature
Metadata - Unstable feature
feature-metadata. Metadata of a feature. - Feature
Name - Verified string newtype
- Hints
- Inheritable
Lints - Inheritable
Package - A group of fields that are inheritable by members of the workspace
- Invalid
Cargo Features - Package
Name - Verified string newtype
- Path
Base Name - Verified string newtype
- Path
Value - Profile
Name - Verified string newtype
- Registry
Name - Verified string newtype
- String
OrVec - This can be parsed from either a TOML string or array, but is always stored as a vector.
- Toml
Detailed Dependency - Toml
Inherited Dependency - Toml
Inherited Field - Toml
Lint Config - Toml
Manifest - This type is used to deserialize
Cargo.tomlfiles. - Toml
OptLevel - Toml
Package - Represents the
package/projectsections of aCargo.toml. - Toml
Platform - Corresponds to a
targetentry, butTomlTargetis already used. - Toml
Profile - Toml
Profiles - Toml
Target - Toml
Workspace - Unresolved
Error - Error validating names in Cargo.
- Workspace
Value π
EnumsΒ§
- Feature
Definition - Definition of a feature.
- Inheritable
Dependency - Inheritable
Field - An enum that allows for inheriting keys from a workspace in a Cargo.toml.
- Profile
Package Spec - String
OrBool - Toml
Debug Info - Toml
Dependency - Toml
Lint - Toml
Lint Level - Toml
Package Build - Toml
Trim Paths - VecString
OrBool
FunctionsΒ§
- deserialize_
builtin π