From 96ee0a9a307ec7d1a39809fb59037bd4e11557cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Glotfelty=20=F0=9F=9A=80?= Date: Sat, 21 Nov 2020 20:13:44 +0000 Subject: [PATCH] Updated changelog for strum 0.20 --- CHANGELOG.md | 18 ++++++++++++++++++ README.md | 28 ++++++++++++++-------------- strum/Cargo.toml | 6 +++--- strum/src/lib.rs | 6 +++--- strum_macros/Cargo.toml | 4 ++-- strum_tests/Cargo.toml | 2 +- strum_tests_rename/Cargo.toml | 2 +- 7 files changed, 42 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 483b0d9..46c1faf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 0.20.0 + +* Refactors to do better error handling. Thanks @jplatte for these changes + * [#133](https://github.com/Peternator7/strum/pull/133) + * [#134](https://github.com/Peternator7/strum/pull/134) + * [#135](https://github.com/Peternator7/strum/pull/135) + +* Adding `vis(scope)` to EnumDiscriminants. [#137](https://github.com/Peternator7/strum/pull/137) + * This feature works best with versions of rust >= 1.34 due to a rustc parsing error in + earlier versions. + * Earlier versions can still use `vis(r#pub)` + +* These changes should not be breaking, but the amount of code modified was significant. + +* FYI about [#122](https://github.com/Peternator7/strum/issues/122). The macro renames feature + will be removed in early 2021. This feature was only necessary in rust 2015 because macros + didn't support qualified imports so macro names could collide between crates. + ## 0.19.4 / 0.19.5 * Updated docs diff --git a/README.md b/README.md index db2bd9a..86ec9d5 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,11 @@ Cargo.toml. Strum_macros contains the macros needed to derive all the traits in ```toml [dependencies] -strum = "0.19" -strum_macros = "0.19" +strum = "0.20" +strum_macros = "0.20" # You can also use the "derive" feature, and import the macros directly from "strum" -# strum = { version = "0.19", features = ["derive"] } +# strum = { version = "0.20", features = ["derive"] } ``` # Strum Macros @@ -68,14 +68,14 @@ information through strings. Strumming is also a very whimsical motion, much like writing Rust code. [Macro-Renames]: https://github.com/Peternator7/strum/wiki/Macro-Renames -[EnumString]: https://docs.rs/strum_macros/0.19.3/strum_macros/derive.EnumString.html -[Display]: https://docs.rs/strum_macros/0.19.3/strum_macros/derive.Display.html -[AsRefStr]: https://docs.rs/strum_macros/0.19.3/strum_macros/derive.AsRefStr.html -[IntoStaticStr]: https://docs.rs/strum_macros/0.19.3/strum_macros/derive.IntoStaticStr.html -[EnumVariantNames]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumVariantNames.html -[EnumIter]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumIter.html -[EnumProperty]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumProperty.html -[EnumMessage]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumMessage.html -[EnumDiscriminants]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumDiscriminants.html -[EnumCount]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumCount.html -[ToString]: https://docs.rs/strum_macros/0.19.3/strum_macros/derive.ToString.html +[EnumString]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumString.html +[Display]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.Display.html +[AsRefStr]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.AsRefStr.html +[IntoStaticStr]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.IntoStaticStr.html +[EnumVariantNames]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumVariantNames.html +[EnumIter]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumIter.html +[EnumProperty]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumProperty.html +[EnumMessage]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumMessage.html +[EnumDiscriminants]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumDiscriminants.html +[EnumCount]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumCount.html +[ToString]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.ToString.html diff --git a/strum/Cargo.toml b/strum/Cargo.toml index 4a37758..dc174ce 100644 --- a/strum/Cargo.toml +++ b/strum/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "strum" -version = "0.19.5" +version = "0.20.1" edition = "2018" authors = ["Peter Glotfelty "] license = "MIT" @@ -15,10 +15,10 @@ repository = "https://github.com/Peternator7/strum" readme = "../README.md" [dependencies] -strum_macros = { path = "../strum_macros", optional = true, version = "0.19" } +strum_macros = { path = "../strum_macros", optional = true, version = "0.20" } [dev-dependencies] -strum_macros = { path = "../strum_macros", version = "0.19" } +strum_macros = { path = "../strum_macros", version = "0.20" } [badges] travis-ci = { repository = "Peternator7/strum" } diff --git a/strum/src/lib.rs b/strum/src/lib.rs index f89bb0b..755da75 100644 --- a/strum/src/lib.rs +++ b/strum/src/lib.rs @@ -16,11 +16,11 @@ //! //! ```toml //! [dependencies] -//! strum = "0.19" -//! strum_macros = "0.19" +//! strum = "0.20" +//! strum_macros = "0.20" //! //! # You can also access strum_macros exports directly through strum using the "derive" feature -//! strum = { version = "0.19", features = ["derive"] } +//! strum = { version = "0.20", features = ["derive"] } //! ``` //! diff --git a/strum_macros/Cargo.toml b/strum_macros/Cargo.toml index c71e096..5eb2308 100644 --- a/strum_macros/Cargo.toml +++ b/strum_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "strum_macros" -version = "0.19.4" +version = "0.20.1" edition = "2018" authors = ["Peter Glotfelty "] license = "MIT" @@ -25,7 +25,7 @@ quote = "1.0" syn = { version = "1.0", features = ["parsing", "extra-traits"] } [dev-dependencies] -strum = "0.19" +strum = "0.20" [features] verbose-enumstring-name = [] diff --git a/strum_tests/Cargo.toml b/strum_tests/Cargo.toml index 5f51b4d..d80b09e 100644 --- a/strum_tests/Cargo.toml +++ b/strum_tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "strum_tests" -version = "0.19.4" +version = "0.20.0" edition = "2018" authors = ["Peter Glotfelty "] diff --git a/strum_tests_rename/Cargo.toml b/strum_tests_rename/Cargo.toml index 3e01bfc..5d47794 100644 --- a/strum_tests_rename/Cargo.toml +++ b/strum_tests_rename/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "strum_tests_rename" -version = "0.19.4" +version = "0.20.0" edition = "2018" authors = ["Peter Glotfelty "]