From c9d5114a54988473061eb7f426ea0508b7bd7122 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Mon, 2 Nov 2026 17:54:21 -0800 Subject: [PATCH] docs: add crates.io badge to README.md It didn't seem consistent to have badges for Python and Node.js packages but no crates.io badge for the rust package. I yanked all the old RC releases on crates.io. Now, the badge accurately shows the latest release (rc.25). --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 43230ba2..1d200f4c 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,8 @@ respective package managers). ### Rust +[![Crates.io Version][crates-io-badge]][crates-io-pkg] + Until 2.0 is released, crates.io only has release candidates, so `--version` is required. @@ -155,6 +157,8 @@ As for dependencies (that are redistributed by us in binary form) and their licenses, refer to [THIRD-PARTY LICENSES][other-licenses]. [MIT]: https://github.com/cpp-linter/cpp-linter-rs/blob/main/LICENSE +[crates-io-badge]: https://img.shields.io/crates/v/cpp-linter?labelColor=454a63&color=975a16 +[crates-io-pkg]: https://crates.io/crates/cpp-linter [test-pypi-badge]: https://img.shields.io/pypi/v/cpp-linter?pypiBaseUrl=https%3A%2F%2Ftest.pypi.org&label=test-pypi&labelColor=454a63&color=975a16 [test-pypi-pkg]: https://test.pypi.org/project/cpp-linter/ [npm-badge]: https://img.shields.io/npm/v/%40cpp-linter%2Fcpp-linter/next?labelColor=454a63&color=975a16