From b7e55611dd7d1ab0b9cf01c4ff6940269668abfd Mon Sep 17 00:00:00 2001 From: Gwen Lg Date: Fri, 12 Jul 2024 13:40:14 +0200 Subject: [PATCH 1/2] fix version in dependency status badge url use version var in readme tpl regenerate README.md with template fix. --- README.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.tpl b/README.tpl index e55665e..f918aa3 100644 --- a/README.tpl +++ b/README.tpl @@ -2,7 +2,7 @@ [![crates.io](https://img.shields.io/crates/v/iter_fixed.svg)](https://crates.io/crates/iter_fixed) [![docs.rs](https://docs.rs/iter_fixed/badge.svg)](https://docs.rs/iter_fixed/) -[![dependency status](https://deps.rs/crate/iter_fixed/0.3.0/status.svg)](https://deps.rs/crate/iter_fixed/0.3.0) +[![dependency status](https://deps.rs/crate/iter_fixed/{{version}}/status.svg)](https://deps.rs/crate/iter_fixed/{{version}}) ![Stable](https://github.com/usbalbin/iter_fixed/actions/workflows/stable.yml/badge.svg) ![Nightly](https://github.com/usbalbin/iter_fixed/actions/workflows/nightly.yml/badge.svg) From 5de188051605d61d2f4ba9bdbd188623c2639826 Mon Sep 17 00:00:00 2001 From: Gwen Lg Date: Fri, 12 Jul 2024 13:42:21 +0200 Subject: [PATCH 2/2] use `crate` variable in README.tpl instead of hardcode iter_fixed, notably in badges link. regenerate README.md with template update. --- README.md | 4 ++-- README.tpl | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 897708c..cc867f4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![crates.io](https://img.shields.io/crates/v/iter_fixed.svg)](https://crates.io/crates/iter_fixed) [![docs.rs](https://docs.rs/iter_fixed/badge.svg)](https://docs.rs/iter_fixed/) -[![dependency status](https://deps.rs/crate/iter_fixed/0.3.0/status.svg)](https://deps.rs/crate/iter_fixed/0.3.0) +[![dependency status](https://deps.rs/crate/iter_fixed/0.4.0/status.svg)](https://deps.rs/crate/iter_fixed/0.4.0) ![Stable](https://github.com/usbalbin/iter_fixed/actions/workflows/stable.yml/badge.svg) ![Nightly](https://github.com/usbalbin/iter_fixed/actions/workflows/nightly.yml/badge.svg) @@ -68,4 +68,4 @@ the Apache License (Version 2.0). See LICENSE-APACHE, and LICENSE-MIT for details. ## Contribution -Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in iter_fixed by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. +Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in `iter_fixed` by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. diff --git a/README.tpl b/README.tpl index f918aa3..f499fd0 100644 --- a/README.tpl +++ b/README.tpl @@ -1,12 +1,12 @@ {{badges}} -[![crates.io](https://img.shields.io/crates/v/iter_fixed.svg)](https://crates.io/crates/iter_fixed) -[![docs.rs](https://docs.rs/iter_fixed/badge.svg)](https://docs.rs/iter_fixed/) -[![dependency status](https://deps.rs/crate/iter_fixed/{{version}}/status.svg)](https://deps.rs/crate/iter_fixed/{{version}}) +[![crates.io](https://img.shields.io/crates/v/{{crate}}.svg)](https://crates.io/crates/{{crate}}) +[![docs.rs](https://docs.rs/{{crate}}/badge.svg)](https://docs.rs/{{crate}}/) +[![dependency status](https://deps.rs/crate/{{crate}}/{{version}}/status.svg)](https://deps.rs/crate/{{crate}}/{{version}}) -![Stable](https://github.com/usbalbin/iter_fixed/actions/workflows/stable.yml/badge.svg) -![Nightly](https://github.com/usbalbin/iter_fixed/actions/workflows/nightly.yml/badge.svg) -![Miri](https://github.com/usbalbin/iter_fixed/actions/workflows/miri.yml/badge.svg) +![Stable](https://github.com/usbalbin/{{crate}}/actions/workflows/stable.yml/badge.svg) +![Nightly](https://github.com/usbalbin/{{crate}}/actions/workflows/nightly.yml/badge.svg) +![Miri](https://github.com/usbalbin/{{crate}}/actions/workflows/miri.yml/badge.svg) # {{crate}} @@ -21,10 +21,10 @@ This crate should work without the full standard library Some additional info here # License : {{license}} -`iter_fixed` is distributed under the terms of both the MIT license and +`{{crate}}` is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE-APACHE, and LICENSE-MIT for details. ## Contribution -Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in iter_fixed by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. +Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in `{{crate}}` by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.