deps-rs / deps.rs

Keep your dependencies up-to-date
https://deps.rs
Apache License 2.0
426 stars 26 forks source link

[Question] Badge without version? #196

Closed saona-raimundo closed 1 year ago

saona-raimundo commented 1 year ago

Thanks for the effort!!

Currently, the link for the badge is https://deps.rs/crate/<name>/<version>/status.svg

Would you consider making a link that is version independent?

This is possible for some information in crates.io. For example, for the current version of a crate, we have https://img.shields.io/crates/v/<name>.svg

robjtede commented 1 year ago

It's not terribly well documented but it's possible to use "latest" in the <version> position. Eg: https://deps.rs/crate/time/latest/status.svg

saona-raimundo commented 1 year ago

Thank you for the answer!

To be consistent, would you consider allowing the link https://deps.rs/crate/time/latest to be valid? Currently, a link to the latest version of a crate is only https://deps.rs/crate/time.