#check #cargo #name #cargo-subcommand #free

bin+lib cargo-free

A cargo subcommand to check if a given crate name is available

7 releases (4 breaking)

0.6.0 Mar 22, 2021
0.5.1 Mar 20, 2021
0.4.0 Mar 12, 2021
0.2.0 Mar 7, 2021
0.0.0 Aug 4, 2020

#632 in Cargo plugins

MIT/Apache

16KB
140 lines

cargo-free

Maintenance crates.io crates.io

A cargo subcommand to check if a given crate name is available.

Installation

cargo install cargo-free --locked

If you do not want a colored help message and colored output, you can install without the feature:

cargo install cargo-free --locked --no-default-features

Usage

CLI

$ cargo free name-to-check
Available
$ cargo free name1 name2 name3
name1: Available
name2: Available
name3: Unavailable

Library

use cargo_free::{check_availability, Availability};

let availability = check_availability("serde");
assert_eq!(availability, Availability::Unavailable);

License

Licensed under either of

at your option.

Contribution

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.

Dependencies

~17MB
~394K SLoC