Create Markdown variable so version only needs to be updated once

This commit is contained in:
Chris Hennick 2024-04-22 17:27:02 -07:00
parent c9cb506bc9
commit c2898aeb01
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -1,3 +1,5 @@
{% assign version = "1.1.1" %}
zip zip
======== ========
@ -33,14 +35,14 @@ With all default features:
```toml ```toml
[dependencies] [dependencies]
zip = "1.1.1" zip = "{{version}}"
``` ```
Without the default features: Without the default features:
```toml ```toml
[dependencies] [dependencies]
zip = { version = "1.1.1", default-features = false } zip = { version = "{{version}}", default-features = false }
``` ```
The features available are: The features available are:
@ -70,8 +72,7 @@ we will follow these guidelines:
- We will always support the latest four minor Rust versions. This gives you a 6 - We will always support the latest four minor Rust versions. This gives you a 6
month window to upgrade your compiler. month window to upgrade your compiler.
- Any change to the MSRV will be accompanied with a **minor** version bump - Any change to the MSRV will be accompanied with a **minor** version bump.
- While the crate is pre-1.0, this will be a change to the PATCH version.
Examples Examples
-------- --------