- Added serialize UPPERCASE
- Added "case-styles" to match the formatting convention they imply such as
kebab-case
andcamelCase
. - Added Enum Variant Names to improve compatibility with
structopt
andclap
. #56 - Added derive re-export to
strum
to allow re-exporting macros from main crate. #57 - Bumped syn and quote to
1.0
. This raises minimal compatible rust version to1.31
. - Did internal refactoring to improve organization of code. Shouldn't change user-facing api though.
- Added license file to subdirectories so they are included in crate distros.
- Added Feature flags to rename macros. This is to improve compatibility with older versions of rust. Wiki
- Allow Missing Docs on EnumCount. PR #43
- Fix serialize_all in
AsRefStr
,AsStaticStr
andIntoStaticStr
. PR #42- This is a bug fix, but it may break code that was relying on the incorrect behavior.
- Added a derive to implement
From<YourEnum>
for&'static str
. This deprecatesAsStaticStr
since the new solution doesn't require astrum
specific trait to use.
- Serialization case can be controlled using
#[strum(serialize_all = "snake_case")]
. (#21) #[derive(EnumDiscriminants)]
generates enum with variants without fields. (#33)
- Implemented
Clone
forEnumIter
s. (#18) - Added
AsStaticRef
derive to allow enums toimpl AsStaticRef<str>
. (#23)
#[allow(missing_docs)]
on generatedEnumIter
s. (#19)