Skip to content

Commit

Permalink
Update docs with new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Glotfelty committed Feb 8, 2025
1 parent 26d7ff1 commit cc240c3
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 12 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 0.27.0

### Highlights

* [#407](https://github.com/Peternator7/strum/pull/407): `Display` is now correctly derived in `[no_std]` projects.
* [#402](https://github.com/Peternator7/strum/pull/402): `EnumIter` now implements `Send + Sync`
* [#400](https://github.com/Peternator7/strum/pull/400): `EnumTryAs` now handles attributes on variant fields correctly.
* [#398](https://github.com/Peternator7/strum/pull/398): `strum` is now on rust 2021
* [#391](https://github.com/Peternator7/strum/pull/391): `EnumProperties` correctly implements `get_bool` and `get_int`
finally. 🎉
* [#380](https://github.com/Peternator7/strum/pull/380): `FromString` now supports 2 additional attributes, `parse_error_ty`
and `parse_error_fn` that can be added to use a custom error type rather than the default strum error message.
* [#410](https://github.com/Peternator7/strum/pull/410): These attributes accept a `Path` rather than a `String`
to improve behavior with rust-analyzer.

### Breaking Changes

* [#384](https://github.com/Peternator7/strum/pull/384): MSRV is now 1.66.1
* [#391](https://github.com/Peternator7/strum/pull/391): `EnumProperties` doesn't provide default implementations anymore.
This would have required you to manually implement this trait which should be very uncommon.

## 0.26.4 (strum_macros)

* [#360](https://github.com/Peternator7/strum/pull/360): Fixes bug introduced with new string interpolation feature where
Expand Down
6 changes: 3 additions & 3 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.26"
strum_macros = "0.26"
strum = "0.27"
strum_macros = "0.27"

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

# Strum Macros
Expand Down
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.26.3"
version = "0.27.0"
edition = "2021"
authors = ["Peter Glotfelty <peter.glotfelty@microsoft.com>"]
license = "MIT"
Expand All @@ -16,11 +16,11 @@ readme = "../README.md"
rust-version = "1.66.1"

[dependencies]
strum_macros = { path = "../strum_macros", optional = true, version = "0.26.3" }
strum_macros = { path = "../strum_macros", optional = true, version = "0.27.0" }
phf = { version = "0.11", features = ["macros"], optional = true }

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

[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.26"
//! strum_macros = "0.26"
//! strum = "0.27"
//! strum_macros = "0.27"
//!
//! # You can also access strum_macros exports directly through strum using the "derive" feature
//! strum = { version = "0.26", features = ["derive"] }
//! strum = { version = "0.27", 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.26.4"
version = "0.27.0"
edition = "2021"
authors = ["Peter Glotfelty <peter.glotfelty@microsoft.com>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion strum_nostd_tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "strum_nostd_tests"
version = "0.26.0"
version = "0.27.0"
edition = "2021"
rust-version = "1.66.1"

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.26.0"
version = "0.27.0"
edition = "2021"
authors = ["Peter Glotfelty <peglotfe@microsoft.com>"]
rust-version = "1.66.1"
Expand Down

0 comments on commit cc240c3

Please sign in to comment.