The man is a simples CLI sub-command from cargo, that helps you manage your Cargo.toml
file.
To install the sub-command you just need to execute the following command:
shell
cargo install cargo-man
To use the CLI you must inform the fields you want it to return or change using the flag --field
or -f
:
shell
cargo man -f version
0.1.0
If you want to attribute a new value just use the flag --set
or -s
shell
cargo man -f version -s 1.0.0
1.0.0
By default, cargo-man looks at the package
table, but you can change that by anything that you want it
shell
cargo man -t dependencies -f something
1.0.0