diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cbb046..6a2ef4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,10 @@ and this project adheres to: ### Changed +## [1.0.1] - 2022-09-06 + +* [MINOR] Fixed Readme for crates.io + ## [1.0.0] - 2022-09-06 * Added LICENSE with MIT License [#10](https://github.com/Allstreamer/pyver/pull/10) diff --git a/Cargo.toml b/Cargo.toml index b2c35c3..2b754a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ authors = [ "Jan Bronicki ", ] license = "MIT" -version = "1.0.0" +version = "1.0.1" keywords = ["versions", "python", "parser", "semver", "pep-440"] readme = "README.md" edition = "2021" diff --git a/README.md b/README.md index 8971158..338fc78 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,14 @@ version numbers and for comparisons between ## Usage -```Toml +```toml [dependencies] pyver = "1" ``` The following is an example for initilizing and comparing two version strings -```Rust +```rust use pyver::PackageVersion; let a = PackageVersion::new("v1.0a2.dev456").unwrap(); @@ -30,7 +30,7 @@ assert_eq!(a < b, true); Comparing single version components -```Rust +```rust use pyver::PackageVersion; let a = PackageVersion::new("1!1.323.dev2").unwrap(); @@ -42,7 +42,7 @@ assert_eq!(a.dev, b.dev); Seperation of version identifiers -```Rust +```rust use pyver::PackageVersion; let version = PackageVersion::new("v1.23.dev2").unwrap();