#query #io #package #crates #command-line #tool #latest-version

app crates-query

crates-query is a simple tool to query crates.io packages from the command line

3 releases

0.1.2 Jan 13, 2024
0.1.1 Dec 19, 2023
0.1.0 Dec 17, 2023

#463 in Command line utilities

Download history 24/week @ 2023-12-17 3/week @ 2024-01-07 1/week @ 2024-01-14 10/week @ 2024-02-18 42/week @ 2024-02-25 2/week @ 2024-03-03 3/week @ 2024-03-10 59/week @ 2024-03-31

62 downloads per month

MIT license

9KB
121 lines

crates-query

Command line tool to query crates.io index

Installation

cargo install crates-query

On NetBSD a pre-complied binary is available from the official repositories. To install it, simply run:

pkgin install crates-query

Usage

There are several query subcommands:

By default crates-query will always use the latest available, but a specific version can be specified using the --ver flag

List a given crates dependencies

$ crates-query hyper dependencies
hyper 1.0.1 dependencies:

bytes ^1
form_urlencoded ^1
futures-channel ^0.3
futures-util ^0.3
h2 ^0.4
http ^1
http-body ^1
http-body-util ^0.1
http-body-util ^0.1
httparse ^1.8
httpdate ^1.0
itoa ^1
libc ^0.2
pin-project-lite ^0.2.4
pretty_env_logger ^0.5
serde ^1.0
serde_json ^1.0
spmc ^0.3
tokio ^1
tokio ^1
tokio-test ^0.4
tracing ^0.1
want ^0.3

Get the minimum rust version

$ crates-query hyper rust-version
hyper 1.0.1 rust version:

Minimum Rust Version: 1.63

Query features available

$ crates-query hyper features
hyper 1.0.1 features:

server
nightly
default
full
http2
ffi
http1
tracing
client

Get versions published

$ crates-query rand_core versions
rand_core versions:

0.0.1
0.1.0-pre.0
0.1.0
0.2.0-pre.0
0.2.0
0.2.1
0.3.0
0.2.2
0.4.0
0.3.1
0.5.0
0.4.1
0.4.2
0.5.1
0.6.0
0.6.1
0.6.2
0.6.3
0.6.4

Dependencies

~4–14MB
~176K SLoC