mirror of
https://github.com/danog/strum.git
synced 2024-11-30 04:28:59 +01:00
Updated changelog for strum 0.20
This commit is contained in:
parent
ddb9c2682e
commit
96ee0a9a30
18
CHANGELOG.md
18
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
|
||||
|
28
README.md
28
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
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "strum"
|
||||
version = "0.19.5"
|
||||
version = "0.20.1"
|
||||
edition = "2018"
|
||||
authors = ["Peter Glotfelty <peter.glotfelty@microsoft.com>"]
|
||||
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" }
|
||||
|
@ -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"] }
|
||||
//! ```
|
||||
//!
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "strum_macros"
|
||||
version = "0.19.4"
|
||||
version = "0.20.1"
|
||||
edition = "2018"
|
||||
authors = ["Peter Glotfelty <peter.glotfelty@microsoft.com>"]
|
||||
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 = []
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "strum_tests"
|
||||
version = "0.19.4"
|
||||
version = "0.20.0"
|
||||
edition = "2018"
|
||||
authors = ["Peter Glotfelty <peglotfe@microsoft.com>"]
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "strum_tests_rename"
|
||||
version = "0.19.4"
|
||||
version = "0.20.0"
|
||||
edition = "2018"
|
||||
authors = ["Peter Glotfelty <peglotfe@microsoft.com>"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user