Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/33/derive enum variants (#34)
* Run rustfmt over repository. * Bump `syn` to 0.15 * Implemented ability to `serialize_all` using cases from `heck`. Issue #21 * Use `path` and `version` in dependency specifications. Issue #21 * Updated documentation. Issue #21 * Added `CHANGELOG.md`. * Also convert case when deriving `Display`. Issue #21 * Added `EnumDiscriminants` derive. Issue #33 * Added the ability to rename derived `EnumDiscriminants`. Issue #33 * Updated `README.md` and lib.rs docs. Issue #33 * Updated `CHANGELOG.md`. Issue #33 * WIP: refactoring to allow attributes on discriminants enum. * Use single `strum_discriminants` top level attribute. Issue #33 * Allow multiple declarations of `strum_discriminants` attribute. Issue #33 * Pass through all other attributes to discriminant enum. Issue #33 * Add `impl From<MyEnum> for MyEnumDiscriminants`. Issue #33 * Add `impl<'_enum> From<&'_enum MyEnum> for MyEnumDiscriminants`. Issue #33 * Added complex case test for `From` derivation. Issue #33 * Added docs to some helper functions. * Added docs about `From` impls. Issue #33
- Loading branch information
1 parent
b6e4e66
commit 1c00f6c
Showing
27 changed files
with
1,023 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Changelog | ||
|
||
## Unreleased | ||
|
||
### Added | ||
|
||
* Serialization case can be controlled using `#[strum(serialize_all = "snake_case")]`. ([#21][#21]) | ||
* `#[derive(EnumDiscriminants)]` generates enum with variants without fields. ([#33][#33]) | ||
|
||
[#21]: https://github.com/Peternator7/strum/issues/21 | ||
[#33]: https://github.com/Peternator7/strum/issues/33 | ||
|
||
## 0.10.0 | ||
|
||
### Added | ||
|
||
* Implemented `Clone` for `EnumIter`s. ([#18][#18]) | ||
* Added `AsStaticRef` derive to allow enums to `impl AsStaticRef<str>`. ([#23][#23]) | ||
|
||
### Fixed | ||
|
||
* `#[allow(missing_docs)]` on generated `EnumIter`s. ([#19][#19]) | ||
|
||
[#18]: https://github.com/Peternator7/strum/pull/18 | ||
[#19]: https://github.com/Peternator7/strum/issues/19 | ||
[#23]: https://github.com/Peternator7/strum/issues/23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.