- Import all items from parent scope when generating structs in submodule. (#9)
#[evt(derive(..))]
on enum adds derives on every variant. (#6, #7)#[evt(module = "module1")]
generates structs insidemod module1
. (#5, #7)#[evt(implement_marker_traits(MarkerTrait1))]
on enum generatesimpl MarkerTrait1
for all generated structs. (#7)
- Allow variants to be skipped using
#[evt(skip)]
. - Breaking:
#[evt(..)]
specifies the attributes to attach to the generated type (previously#[evt_attr(..)]
).
- Generates unit, tuple, named struct for each enum variant.
impl From<EnumVariantType> for Enum
.impl TryFrom<Enum, Error = Enum> for EnumVariantType
.#[cfg(..)]
,#[doc = ".."]
,#[allow(..)]
,#[deny(..)]
attributes are copied from the variant.#[evt_attr(..)]
specifies the attributes to attach to the generated type.