Skip to content

Commit

Permalink
Make changes necessary for version 0.22 (#181)
Browse files Browse the repository at this point in the history
* Make changes necessary for version 0.22

* Update changelog

Co-authored-by: Peter Glotfelty <[email protected]>
  • Loading branch information
Peternator7 and Peter Glotfelty authored Oct 11, 2021
1 parent 1ec3528 commit 08583fc
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 22 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.22.0

* [#180](https://github.com/Peternator7/strum/pull/180): Deprecates `ToString` derive. You should use `Display`
instead.

* [#178](https://github.com/Peternator7/strum/pull/178): Deprecates AsStaticStr. This has been undocumented for a while.
The recommended method is to derive `IntoStaticStr` instead.

* [#171](https://github.com/Peternator7/strum/pull/171): Improve `no-std` support.

* [#170](https://github.com/Peternator7/strum/pull/170): enable changing the path to strum traits. This is necessary
if you re-export strum as a submodule in another crate.

## 0.21.1

* [#164](https://github.com/Peternator7/strum/pull/164) Improve compatibility with older versions of `syn`.
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ Cargo.toml. Strum_macros contains the macros needed to derive all the traits in

```toml
[dependencies]
strum = "0.21"
strum_macros = "0.21"
strum = "0.22"
strum_macros = "0.22"

# You can also use the "derive" feature, and import the macros directly from "strum"
# strum = { version = "0.21", features = ["derive"] }
# strum = { version = "0.22", features = ["derive"] }
```

# Strum Macros
Expand Down Expand Up @@ -67,13 +67,13 @@ 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.21/strum_macros/derive.EnumString.html
[Display]: https://docs.rs/strum_macros/0.21/strum_macros/derive.Display.html
[AsRefStr]: https://docs.rs/strum_macros/0.21/strum_macros/derive.AsRefStr.html
[IntoStaticStr]: https://docs.rs/strum_macros/0.21/strum_macros/derive.IntoStaticStr.html
[EnumVariantNames]: https://docs.rs/strum_macros/0.21/strum_macros/derive.EnumVariantNames.html
[EnumIter]: https://docs.rs/strum_macros/0.21/strum_macros/derive.EnumIter.html
[EnumProperty]: https://docs.rs/strum_macros/0.21/strum_macros/derive.EnumProperty.html
[EnumMessage]: https://docs.rs/strum_macros/0.21/strum_macros/derive.EnumMessage.html
[EnumDiscriminants]: https://docs.rs/strum_macros/0.21/strum_macros/derive.EnumDiscriminants.html
[EnumCount]: https://docs.rs/strum_macros/0.21/strum_macros/derive.EnumCount.html
[EnumString]: https://docs.rs/strum_macros/0.22/strum_macros/derive.EnumString.html
[Display]: https://docs.rs/strum_macros/0.22/strum_macros/derive.Display.html
[AsRefStr]: https://docs.rs/strum_macros/0.22/strum_macros/derive.AsRefStr.html
[IntoStaticStr]: https://docs.rs/strum_macros/0.22/strum_macros/derive.IntoStaticStr.html
[EnumVariantNames]: https://docs.rs/strum_macros/0.22/strum_macros/derive.EnumVariantNames.html
[EnumIter]: https://docs.rs/strum_macros/0.22/strum_macros/derive.EnumIter.html
[EnumProperty]: https://docs.rs/strum_macros/0.22/strum_macros/derive.EnumProperty.html
[EnumMessage]: https://docs.rs/strum_macros/0.22/strum_macros/derive.EnumMessage.html
[EnumDiscriminants]: https://docs.rs/strum_macros/0.22/strum_macros/derive.EnumDiscriminants.html
[EnumCount]: https://docs.rs/strum_macros/0.22/strum_macros/derive.EnumCount.html
6 changes: 3 additions & 3 deletions strum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "strum"
version = "0.21.0"
version = "0.22.0"
edition = "2018"
authors = ["Peter Glotfelty <[email protected]>"]
license = "MIT"
Expand All @@ -15,10 +15,10 @@ repository = "https://github.com/Peternator7/strum"
readme = "../README.md"

[dependencies]
strum_macros = { path = "../strum_macros", optional = true, version = "0.21" }
strum_macros = { path = "../strum_macros", optional = true, version = "0.22" }

[dev-dependencies]
strum_macros = { path = "../strum_macros", version = "0.21" }
strum_macros = { path = "../strum_macros", version = "0.22" }

[badges]
travis-ci = { repository = "Peternator7/strum" }
Expand Down
6 changes: 3 additions & 3 deletions strum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
//!
//! ```toml
//! [dependencies]
//! strum = "0.21"
//! strum_macros = "0.21"
//! strum = "0.22"
//! strum_macros = "0.22"
//!
//! # You can also access strum_macros exports directly through strum using the "derive" feature
//! strum = { version = "0.21", features = ["derive"] }
//! strum = { version = "0.22", features = ["derive"] }
//! ```
//!
Expand Down
2 changes: 1 addition & 1 deletion strum_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "strum_macros"
version = "0.21.1"
version = "0.22.0"
edition = "2018"
authors = ["Peter Glotfelty <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion strum_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn debug_print_generated(ast: &DeriveInput, toks: &TokenStream) {
/// variant. There is an option to match on different case conversions through the
/// `#[strum(serialize_all = "snake_case")]` type attribute.
///
/// See the [Additional Attributes](https://docs.rs/strum/0.21/strum/additional_attributes/index.html)
/// See the [Additional Attributes](https://docs.rs/strum/0.22/strum/additional_attributes/index.html)
/// Section for more information on using this feature.
///
/// # Example howto use EnumString
Expand Down
2 changes: 1 addition & 1 deletion strum_tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "strum_tests"
version = "0.21.0"
version = "0.22.0"
edition = "2018"
authors = ["Peter Glotfelty <[email protected]>"]

Expand Down

0 comments on commit 08583fc

Please sign in to comment.