You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just installed cargo-show v0.5.9, and no matter what crate I view with it, the license is always displayed as None. For example, despite clap's crates.io page saying it's licensed under MIT or Apache-2.0, cargo show clap gives:
---
id: clap
name: clap
description: A simple to use, efficient, and full-featured Command Line Argument Parser
documentation: None
homepage: None
repository: https://github.com/clap-rs/clap
max_version: 3.2.8
downloads: 63587041
license: None
created: 2015-03-01T01:17:24.903018+00:00
updated: 2022-06-30T13:26:01.537514+00:00
The text was updated successfully, but these errors were encountered:
cargo show is using the crate key from API endpoint https://crates.io/api/v1/crates/clap response, but it doesn't include the license key (the unofficial API might've changed?)
clap's license changes from null to MIT to MIT or Apache-2.0 in the API response the versions field (cargo show --json clap | jq -c '.versions[] | {num: .num, license: .license}')
I'll try to find some time to update cargo show to use metadata from the most recent version to match crates.io behavior. IMO that would surprise people the least.
I just installed
cargo-show
v0.5.9, and no matter what crate I view with it, the license is always displayed asNone
. For example, despite clap's crates.io page saying it's licensed under MIT or Apache-2.0,cargo show clap
gives:The text was updated successfully, but these errors were encountered: