| Crates.io | cargo-bin |
| lib.rs | cargo-bin |
| version | 0.3.0 |
| created_at | 2020-08-19 03:34:27.318723+00 |
| updated_at | 2020-10-10 02:04:51.681282+00 |
| description | help to manage all binares in Cargo.toml |
| homepage | https://github.com/gensmusic/cargo-bin |
| repository | https://github.com/gensmusic/cargo-bin |
| max_upload_size | |
| id | 278101 |
| size | 33,052 |
The cargo bin subcommand provides some operations to manage binaries in Cargo.toml.
# install
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.
cd src
cargo bin new abc
# or
cargo bin new abc.rs
The Cargo.toml file.
[[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.
cargo bin tidy