Crates.io | cargo-free |
lib.rs | cargo-free |
version | 0.6.0 |
source | src |
created_at | 2020-08-04 12:09:48.094666 |
updated_at | 2021-03-22 23:13:51.572471 |
description | A cargo subcommand to check if a given crate name is available. |
homepage | |
repository | https://github.com/SirWindfield/cargo-free |
max_upload_size | |
id | 272884 |
size | 49,101 |
A cargo subcommand to check if a given crate name is available.
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
$ cargo free name-to-check
Available
$ cargo free name1 name2 name3
name1: Available
name2: Available
name3: Unavailable
use cargo_free::{check_availability, Availability};
let availability = check_availability("serde");
assert_eq!(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.