You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 11, 2026. It is now read-only.
It would be helpful if the enum produced by typestate(enumerate = ...) could be pre-declared such that #[derive(...)] can be used upon it or potentially (a subset of?) its members.
#[typestate(enumerate = "StateMachineStates")pubmod state_machine {
#[automaton]
#[derive(Debug,Clone,PartialEq,Eq)]pubstructStateMachine;
#[state]pubstructIn;
#[state]pubstructOut;// No field-specific annotations
#[enumerate]
#[derive(Debug,Clone,PartialEq,Eq)]pubenumStateMachineStates;// or, with fields annotated for another annotation-macro
#[enumerate]
#[derive(derivative)]
#[derivative(Debug)]pubenumStateMachineStates{
#[derivative(Debug="transparent")]In,// Note that only some states are included// Any not explicitly mentioned are filled in prior to other #[derive]s expanding.}// ...}