Skip to main content

Module manifest

Module manifest 

Source
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Β§

FeatureMetadata
Unstable feature feature-metadata. Metadata of a feature.
FeatureName
Verified string newtype
Hints
InheritableLints
InheritablePackage
A group of fields that are inheritable by members of the workspace
InvalidCargoFeatures
PackageName
Verified string newtype
PathBaseName
Verified string newtype
PathValue
ProfileName
Verified string newtype
RegistryName
Verified string newtype
StringOrVec
This can be parsed from either a TOML string or array, but is always stored as a vector.
TomlDetailedDependency
TomlInheritedDependency
TomlInheritedField
TomlLintConfig
TomlManifest
This type is used to deserialize Cargo.toml files.
TomlOptLevel
TomlPackage
Represents the package/project sections of a Cargo.toml.
TomlPlatform
Corresponds to a target entry, but TomlTarget is already used.
TomlProfile
TomlProfiles
TomlTarget
TomlWorkspace
UnresolvedError
Error validating names in Cargo.
WorkspaceValue πŸ”’

EnumsΒ§

FeatureDefinition
Definition of a feature.
InheritableDependency
InheritableField
An enum that allows for inheriting keys from a workspace in a Cargo.toml.
ProfilePackageSpec
StringOrBool
TomlDebugInfo
TomlDependency
TomlLint
TomlLintLevel
TomlPackageBuild
TomlTrimPaths
VecStringOrBool

FunctionsΒ§

deserialize_builtin πŸ”’

Type AliasesΒ§

InheritableBtreeMap
InheritableRustVersion
InheritableSemverVersion
InheritableString
InheritableStringOrBool
InheritableVecString
InheritableVecStringOrBool
TomlBenchTarget
TomlBinTarget
TomlExampleTarget
TomlLibTarget
TomlLints
TomlTestTarget
TomlToolLints