Skip to content

Commit

Permalink
Update versions to 0.27.1 everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Glotfelty committed Feb 17, 2025
1 parent 1576a7a commit 85d0ae6
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## 0.27.1

* [#414](https://github.com/Peternator7/strum/pull/414): Fix docrs build error.
* [#417](https://github.com/Peternator7/strum/pull/417): Mention `parse_error_ty` and `parse_error_fn` that had been
left out of the docs accidentally.
* [#421](https://github.com/Peternator7/strum/pull/421)[#331](https://github.com/Peternator7/strum/pull/331): Implement
`#[strum(transparent)]` attribute on `IntoStaticStr`, `Display` and `AsRefStr` that forwards the implmenentation to
the inner value. Note that for static strings, the inner value must be convertible to an `&'static str`.

```rust
#[derive(strum::Display)]
enum SurveyResponse {
Yes,
No,
#[strum(transparent)]
Other(String)
}

fn main() {
let response = SurveyResponse::Other("It was good".into());
println!("Question: Did you have fun?");
println!("Answer: {}", response);
// prints: Answer: It was good
}
```

## 0.27.0

### Highlights
Expand Down
4 changes: 2 additions & 2 deletions strum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "strum"
version = "0.27.0"
version = "0.27.1"
edition = "2021"
authors = ["Peter Glotfelty <peter.glotfelty@microsoft.com>"]
license = "MIT"
Expand All @@ -16,7 +16,7 @@ readme = "../README.md"
rust-version = "1.66.1"

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

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

0 comments on commit 85d0ae6

Please sign in to comment.