- 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)