Crate cargo_wizard
source ·Expand description
cargo-wizard
is a Cargo subcommand that can apply preconfigured templates to your Cargo.toml manifest.
Non-interactive command-line usage:
cargo wizard apply <template> <profile> [--nightly=on]
Interactive command-line usage:
cargo wizard
You can also use this crate as a library, although it probably won’t be very useful.
Structs§
- Config stored in
.cargo/config.toml
file. - Manifest parsed out of a
Cargo.toml
file. - Cargo workspace project.
- Workspace that was modified through a template.
- A set of Cargo profile items and .cargo/config.toml config items that can be applied to a Cargo workspace.
- Describes options for applying templates
Enums§
- Result of modification of a manifest or a config.
- Enumeration of predefined templates.
- Identifier of a specific item of a template.
- Representation of a numeric, boolean or a string TOML value.
Functions§
- Template that focuses on quick compile time.
- Template that focuses on maximum runtime performance.
- Find the number of cores on the current device, or return a default of
8
. - Template that template focuses on minimal binary size.
- Parses a Cargo workspace from a Cargo.toml manifest path.
- Tries to resolve the workspace root manifest (Cargo.toml) path from the current directory.