The cargo bin subcommand provides some operations to manage binaries in Cargo.toml.
```shell script
cargo install cargo-bin ```
Create a new binary abc and add into Cargo.toml.
The following will create a file abc.rs with a default fn main() in current folder.
And a [[bin]] will be added into the Cargo.toml.
```shell script cd src cargo bin new abc
cargo bin new abc.rs ```
The Cargo.toml file.
toml
[[bin]]
name = "abc"
path = "src/abc.rs"
cargo bin tidy will add all .rs file with a main function into Cargo.toml.
It will also clean up all the invalid [[bin]]s which doesn't exists.
shell script
cargo bin tidy