A cargo subcommand to check if a given crate name is available.
text
cargo install cargo-free --locked
If you do not want a colored help message and colored output, you can install without the feature:
text
cargo install cargo-free --locked --no-default-features
text
$ cargo free name-to-check
Available
text
$ cargo free name1 name2 name3
name1: Available
name2: Available
name3: Unavailable
```rust use cargofree::{checkavailability, Availability};
let availability = checkavailability("serde"); asserteq!(availability, Availability::Unavailable); ```
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.