0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

rust バージョン一覧の取得

Last updated at Posted at 2021-01-12
show_version.sh
#!/bin/zsh
cargo show --json $1 | python -m json.tool | jq ".versions[].num"

出力結果

"2.0.0-beta.2"
"2.0.0-beta.1"
"1.1.1"
"1.1.0"
"1.0.0"
"1.0.0-alpha.3"
"1.0.0-alpha.2"
"1.0.0-alpha.1"
"0.2.6"
"0.2.5"
"0.2.4"
"0.2.3"
"0.2.2"
"0.2.1"
"0.2.0"
"0.1.0"

やりたいことはcargoのコマンドでできた。
https://stackoverflow.com/questions/65677998/how-can-i-find-the-latest-stable-version-of-a-crate-using-cargo/65679346#65679346

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?