type Manifest = Manifest<PackageMetadata>;
Aliased Type§
struct Manifest {Show 17 fields
pub package: Option<Package<PackageMetadata>>,
pub workspace: Option<Workspace<PackageMetadata>>,
pub dependencies: BTreeMap<String, Dependency>,
pub dev_dependencies: BTreeMap<String, Dependency>,
pub build_dependencies: BTreeMap<String, Dependency>,
pub target: BTreeMap<String, Target>,
pub features: BTreeMap<String, Vec<String>>,
pub replace: BTreeMap<String, Dependency>,
pub patch: BTreeMap<String, BTreeMap<String, Dependency>>,
pub lib: Option<Product>,
pub profile: Profiles,
pub badges: Badges,
pub bin: Vec<Product>,
pub bench: Vec<Product>,
pub test: Vec<Product>,
pub example: Vec<Product>,
pub lints: Inheritable<BTreeMap<String, BTreeMap<String, Lint>>>,
}
Fields§
§package: Option<Package<PackageMetadata>>
Package definition (a cargo crate)
workspace: Option<Workspace<PackageMetadata>>
Workspace-wide settings
dependencies: BTreeMap<String, Dependency>
Normal dependencies
dev_dependencies: BTreeMap<String, Dependency>
Dev/test-only deps
build_dependencies: BTreeMap<String, Dependency>
Build-time deps
target: BTreeMap<String, Target>
[target.cfg.dependencies]
features: BTreeMap<String, Vec<String>>
The [features]
section. This set may be incomplete!
Optional dependencies may create implied Cargo features.
This features section also supports microsyntax with dep:
, /
, and ?
for managing dependencies and their features.io
This crate has an optional [features
] module for dealing with this
complexity and getting the real list of features.
replace: BTreeMap<String, Dependency>
Obsolete
patch: BTreeMap<String, BTreeMap<String, Dependency>>
[patch.crates-io]
section
lib: Option<Product>
Note that due to autolibs feature this is not the complete list
unless you run [Manifest::complete_from_path
]
profile: Profiles
Compilation/optimization settings
badges: Badges
[badges]
section
bin: Vec<Product>
Note that due to autobins feature this is not the complete list
unless you run [Manifest::complete_from_path
]
bench: Vec<Product>
Benchmarks
test: Vec<Product>
Integration tests
example: Vec<Product>
Examples
lints: Inheritable<BTreeMap<String, BTreeMap<String, Lint>>>
Lints