Skip to content

Commit

Permalink
update readme for 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
g-k committed Mar 15, 2024
1 parent 7dd12c4 commit f7d9e5d
Showing 1 changed file with 55 additions and 27 deletions.
82 changes: 55 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ To install:
```sh
$ cargo install cargo-show
Updating crates.io index
Installing cargo-show v0.5.7
Downloading crates ...
Downloaded lazy_static v1.4.0
Downloaded strsim v0.9.3
Downloaded cargo-show v0.6.0
Installing cargo-show v0.6.0
Updating crates.io index
...
Compiling g-k-crates-io-client v0.27.1
Compiling cargo-show v0.5.7
Finished release [optimized] target(s) in 2m 30s
Installing /Users/greg/.cargo/bin/cargo-show
Installed package `cargo-show v0.5.7` (executable `cargo-show`)
Compiling g-k-crates-io-client v0.40.1
Compiling cargo-show v0.6.0
Finished release [optimized] target(s) in 11.41s
Installing /Users/gguthe/.cargo/bin/cargo-show
Installed package `cargo-show v0.6.0` (executable `cargo-show`)
$
```

Expand All @@ -45,7 +45,7 @@ To print package metadata:
```sh
$ cargo show nonexistent-package servo
Error fetching data for nonexistent-package: api errors (status 404 Not Found): Not Found
Error fetching data for nonexistent-package: the remote server responded with an error (status 404 Not Found): crate `nonexistent-package` does not exist
---
id: servo
name: servo
Expand All @@ -54,7 +54,7 @@ documentation: None
homepage: None
repository: None
max_version: 0.0.1
downloads: 3137
downloads: 7344
license: None
created: 2014-12-04T23:41:05.915728+00:00
updated: 2015-12-11T23:55:55.315022+00:00
Expand All @@ -64,7 +64,7 @@ To print JSON:
```json
$ cargo show --json serde | cut -b '1-120'
{"crate":{"id":"serde","name":"serde","updated_at":"2019-12-16T04:09:49.363249+00:00","versions":[196666,192011,185512,1
{"categories":[{"category":"No dynamic allocation","crates_cnt":329,"created_at":"2023-01-23T10:07:45.986892+00:00","des
```
To print package metadata and direct dependencies (alternatively use `-L`):
Expand All @@ -76,15 +76,37 @@ id: time
name: time
description: Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std].
documentation: None
homepage: None
homepage: https://time-rs.github.io
repository: https://github.com/time-rs/time
max_version: 0.2.2
downloads: 10771986
max_version: 0.3.34
downloads: 222936436
license: None
created: 2014-11-13T06:52:51.369245+00:00
updated: 2020-01-08T03:27:19.481880+00:00
updated: 2024-02-03T22:30:48.136812+00:00
dependencies:
serde ^1 (opt)
deranged ^0.3.9
num-conv ^0.1.0
powerfmt ^0.2.0
time-core =0.1.2
itoa ^1.0.1 (opt)
js-sys ^0.3.58 (opt)
libc ^0.2.98 (opt)
num_threads ^0.1.2 (opt)
quickcheck ^1.0.3 (opt)
rand ^0.8.4 (opt)
serde ^1.0.184 (opt)
time-macros =0.2.17 (opt)
criterion ^0.5.1 (dev)
num-conv ^0.1.0 (dev)
quickcheck_macros ^1.0.0 (dev)
rand ^0.8.4 (dev)
rstest ^0.18.2 (dev)
rstest_reuse ^0.6.0 (dev)
serde ^1.0.184 (dev)
serde_json ^1.0.68 (dev)
serde_test ^1.0.126 (dev)
time-macros =0.2.17 (dev)
trybuild ^1.0.68 (dev)
```
Expand All @@ -95,22 +117,28 @@ $ cargo show --dependencies --json time | python -m json.tool | head -n25
{
"dependencies": [
{
"crate_id": "serde",
"crate_id": "criterion",
"default_features": false,
"downloads": 0,
"features": [],
"id": 9234563,
"kind": "dev",
"optional": false,
"req": "^0.5.1",
"target": "cfg(bench)",
"version_id": 1038365
},
{
"crate_id": "deranged",
"default_features": false,
"downloads": 0,
"features": [
"derive",
"alloc"
"powerfmt"
],
"id": 1078018,
"id": 9234543,
"kind": "normal",
"optional": true,
"req": "^1",
"target": null,
"version_id": 202181
}
]
}
"optional": false,
"req": "^0.3.9",
```
Expand Down

0 comments on commit f7d9e5d

Please sign in to comment.