https://github.com/mainrs/cargo-free
A cargo subcommand to check if a given crate name is available.
https://github.com/mainrs/cargo-free
cargo-subcommand cli rust-library
Last synced: about 2 months ago
JSON representation
A cargo subcommand to check if a given crate name is available.
- Host: GitHub
- URL: https://github.com/mainrs/cargo-free
- Owner: mainrs
- License: apache-2.0
- Created: 2020-08-04T12:00:43.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-08T16:20:38.000Z (over 2 years ago)
- Last Synced: 2025-03-28T02:48:38.534Z (about 2 months ago)
- Topics: cargo-subcommand, cli, rust-library
- Language: Nix
- Homepage: https://crates.io/crates/cargo-free
- Size: 840 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license-apache
Awesome Lists containing this project
README
# cargo-free
[](https://github.com/SirWindfield/cargo-free)
[](https://crates.io/crates/cargo-free)
[](https://crates.io/crates/cargo-free)> A cargo subcommand to check if a given crate name is available.
## Installation
```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
```## Usage
### CLI
```text
$ cargo free name-to-check
Available
``````text
$ cargo free name1 name2 name3
name1: Available
name2: Available
name3: Unavailable
```### Library
```rust
use cargo_free::{check_availability, Availability};let availability = check_availability("serde");
assert_eq!(availability, Availability::Unavailable);
```## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
https://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)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.