Skip to content

Commit c8d6241

Browse files
author
Peter Glotfelty
committed
Updated the CHANGELOG for the new release
1 parent 38f6621 commit c8d6241

File tree

6 files changed

+33
-17
lines changed

6 files changed

+33
-17
lines changed

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Changelog
22

3+
## 0.27.2
4+
5+
* [#141](https://github.com/Peternator7/strum/pull/141): Adding support for doc comments on `EnumDiscriminants` generated type.
6+
* The doc comment will be copied from the variant on the type itself.
7+
* [#435](https://github.com/Peternator7/strum/pull/435):allow discriminants on empty enum.
8+
* [#443](https://github.com/Peternator7/strum/pull/443): Change enum table callbacks to FnMut.
9+
* [#444](https://github.com/Peternator7/strum/pull/444): Add `#[automatically_derived]` to the `impl`s by @dandedotdev in https://github.com/Peternator7/strum/pull/444
10+
* This should make the linter less noisy with warnings in generated code.
11+
* [#440](https://github.com/Peternator7/strum/pull/440): Implement a `suffix` attribute for serialization of enum variants.
12+
13+
```rust
14+
#[derive(strum::Display)]
15+
#[strum(suffix=".json")]
16+
#[strum(serialize_all="snake_case")]
17+
enum StorageConfiguration {
18+
PostgresProvider,
19+
S3StorageProvider,
20+
AzureStorageProvider,
21+
}
22+
23+
fn main() {
24+
let response = SurveyResponse::Other("It was good".into());
25+
println!("Loading configuration from: {}", StorageConfiguration::PostgresProvider);
26+
// prints: Loaded Configuration from: postgres_provider.json
27+
}
28+
```
29+
30+
* [#446](https://github.com/Peternator7/strum/pull/446): Drop needless `rustversion` dependency.
31+
332
## 0.27.1
433

534
* [#414](https://github.com/Peternator7/strum/pull/414): Fix docrs build error.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Strum
22

3-
[![Build Status](https://travis-ci.com/Peternator7/strum.svg?branch=master)](https://travis-ci.com/Peternator7/strum)
4-
[![Build status](https://ci.appveyor.com/api/projects/status/ji4f6n2m5lvu11xt?svg=true)](https://ci.appveyor.com/project/Peternator7/strum)
3+
[![Rust](https://github.com/Peternator7/strum/actions/workflows/ci.yml/badge.svg)](https://github.com/Peternator7/strum/actions/workflows/ci.yml)
54
[![Latest Version](https://img.shields.io/crates/v/strum.svg)](https://crates.io/crates/strum)
65
[![Rust Documentation](https://docs.rs/strum/badge.svg)](https://docs.rs/strum)
76
![Crates.io](https://img.shields.io/crates/l/strum)

strum/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "strum"
3-
version = "0.27.1"
3+
version = "0.27.2"
44
edition = "2021"
55
authors = ["Peter Glotfelty <[email protected]>"]
66
license = "MIT"
@@ -16,7 +16,7 @@ readme = "../README.md"
1616
rust-version = "1.66.1"
1717

1818
[dependencies]
19-
strum_macros = { path = "../strum_macros", optional = true, version = "0.27.1" }
19+
strum_macros = { path = "../strum_macros", optional = true, version = "0.27" }
2020
phf = { version = "0.12", features = ["macros"], optional = true }
2121

2222
[dev-dependencies]

strum_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "strum_macros"
3-
version = "0.27.1"
3+
version = "0.27.2"
44
edition = "2021"
55
authors = ["Peter Glotfelty <[email protected]>"]
66
license = "MIT"

travis.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)