mirror of
https://github.com/danog/strum.git
synced 2024-12-02 09:27:57 +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
|
# 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
|
## 0.19.4 / 0.19.5
|
||||||
|
|
||||||
* Updated docs
|
* 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
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
strum = "0.19"
|
strum = "0.20"
|
||||||
strum_macros = "0.19"
|
strum_macros = "0.20"
|
||||||
|
|
||||||
# You can also use the "derive" feature, and import the macros directly from "strum"
|
# 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
|
# Strum Macros
|
||||||
@ -68,14 +68,14 @@ information through strings.
|
|||||||
Strumming is also a very whimsical motion, much like writing Rust code.
|
Strumming is also a very whimsical motion, much like writing Rust code.
|
||||||
|
|
||||||
[Macro-Renames]: https://github.com/Peternator7/strum/wiki/Macro-Renames
|
[Macro-Renames]: https://github.com/Peternator7/strum/wiki/Macro-Renames
|
||||||
[EnumString]: https://docs.rs/strum_macros/0.19.3/strum_macros/derive.EnumString.html
|
[EnumString]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumString.html
|
||||||
[Display]: https://docs.rs/strum_macros/0.19.3/strum_macros/derive.Display.html
|
[Display]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.Display.html
|
||||||
[AsRefStr]: https://docs.rs/strum_macros/0.19.3/strum_macros/derive.AsRefStr.html
|
[AsRefStr]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.AsRefStr.html
|
||||||
[IntoStaticStr]: https://docs.rs/strum_macros/0.19.3/strum_macros/derive.IntoStaticStr.html
|
[IntoStaticStr]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.IntoStaticStr.html
|
||||||
[EnumVariantNames]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumVariantNames.html
|
[EnumVariantNames]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumVariantNames.html
|
||||||
[EnumIter]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumIter.html
|
[EnumIter]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumIter.html
|
||||||
[EnumProperty]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumProperty.html
|
[EnumProperty]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumProperty.html
|
||||||
[EnumMessage]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumMessage.html
|
[EnumMessage]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumMessage.html
|
||||||
[EnumDiscriminants]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumDiscriminants.html
|
[EnumDiscriminants]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumDiscriminants.html
|
||||||
[EnumCount]: https://docs.rs/strum_macros/0.19.4/strum_macros/derive.EnumCount.html
|
[EnumCount]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.EnumCount.html
|
||||||
[ToString]: https://docs.rs/strum_macros/0.19.3/strum_macros/derive.ToString.html
|
[ToString]: https://docs.rs/strum_macros/0.20.0/strum_macros/derive.ToString.html
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "strum"
|
name = "strum"
|
||||||
version = "0.19.5"
|
version = "0.20.1"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
authors = ["Peter Glotfelty <peter.glotfelty@microsoft.com>"]
|
authors = ["Peter Glotfelty <peter.glotfelty@microsoft.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
@ -15,10 +15,10 @@ repository = "https://github.com/Peternator7/strum"
|
|||||||
readme = "../README.md"
|
readme = "../README.md"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
strum_macros = { path = "../strum_macros", optional = true, version = "0.19" }
|
strum_macros = { path = "../strum_macros", optional = true, version = "0.20" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
strum_macros = { path = "../strum_macros", version = "0.19" }
|
strum_macros = { path = "../strum_macros", version = "0.20" }
|
||||||
|
|
||||||
[badges]
|
[badges]
|
||||||
travis-ci = { repository = "Peternator7/strum" }
|
travis-ci = { repository = "Peternator7/strum" }
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
//!
|
//!
|
||||||
//! ```toml
|
//! ```toml
|
||||||
//! [dependencies]
|
//! [dependencies]
|
||||||
//! strum = "0.19"
|
//! strum = "0.20"
|
||||||
//! strum_macros = "0.19"
|
//! strum_macros = "0.20"
|
||||||
//!
|
//!
|
||||||
//! # You can also access strum_macros exports directly through strum using the "derive" feature
|
//! # 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]
|
[package]
|
||||||
name = "strum_macros"
|
name = "strum_macros"
|
||||||
version = "0.19.4"
|
version = "0.20.1"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
authors = ["Peter Glotfelty <peter.glotfelty@microsoft.com>"]
|
authors = ["Peter Glotfelty <peter.glotfelty@microsoft.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
@ -25,7 +25,7 @@ quote = "1.0"
|
|||||||
syn = { version = "1.0", features = ["parsing", "extra-traits"] }
|
syn = { version = "1.0", features = ["parsing", "extra-traits"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
strum = "0.19"
|
strum = "0.20"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
verbose-enumstring-name = []
|
verbose-enumstring-name = []
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "strum_tests"
|
name = "strum_tests"
|
||||||
version = "0.19.4"
|
version = "0.20.0"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
authors = ["Peter Glotfelty <peglotfe@microsoft.com>"]
|
authors = ["Peter Glotfelty <peglotfe@microsoft.com>"]
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "strum_tests_rename"
|
name = "strum_tests_rename"
|
||||||
version = "0.19.4"
|
version = "0.20.0"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
authors = ["Peter Glotfelty <peglotfe@microsoft.com>"]
|
authors = ["Peter Glotfelty <peglotfe@microsoft.com>"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user