Skip to main content

crate_cli/manifest/
const.rs

1/// Manifest file name every Cargo package root is looked up under.
2pub const CARGO_TOML: &str = "Cargo.toml";
3
4/// `[workspace]` table key in a Cargo manifest.
5pub(crate) const TOML_WORKSPACE: &str = "workspace";
6
7/// `[package]` table key in a Cargo manifest.
8pub(crate) const TOML_PACKAGE: &str = "package";
9
10/// `[package].version` key in a Cargo manifest.
11pub(crate) const TOML_VERSION: &str = "version";
12
13/// `[package].name` key in a Cargo manifest.
14pub(crate) const TOML_NAME: &str = "name";
15
16/// `[workspace.members]` array key in a Cargo manifest.
17pub(crate) const TOML_MEMBERS: &str = "members";
18
19/// `[package].publish` key in a Cargo manifest.
20pub(crate) const TOML_PUBLISH_KEY: &str = "publish";
21
22/// `[dependencies]` table key in a Cargo manifest.
23pub(crate) const TOML_DEPENDENCIES: &str = "dependencies";
24
25/// `[dev-dependencies]` table key in a Cargo manifest.
26pub(crate) const TOML_DEV_DEPENDENCIES: &str = "dev-dependencies";
27
28/// `[build-dependencies]` table key in a Cargo manifest.
29pub(crate) const TOML_BUILD_DEPENDENCIES: &str = "build-dependencies";
30
31/// `[target]` table key in a Cargo manifest.
32pub(crate) const TOML_TARGET: &str = "target";
33
34/// `path` key of a local dependency entry in a Cargo manifest.
35pub(crate) const TOML_PATH: &str = "path";