Generated Charts Thoughts
Closed this issue ยท 4 comments
I think the auto-gen state charts guaranteed to stay in line with the code is a killer feature.
A few bike-shedding UX improvements I wanted to see what you think
-
Allow ChoiceNode edge labels via annotation to the ChoiceEnum variants - either through an annotation
#[label("out of retries")]
or by grabbing the variant's doc comment like thedisplaydoc
crate -
Configurable asset destination - instead of populating the
root
directory, allow the user to configure it like by setting an env variable.
Are you accepting outside contributions?
Regarding your suggestions
- That is a great idea but the underlying graph would require some refactoring. We can discuss these changes as your suggestion makes a lot of sense and could be expanded in some cases.
- That is easy enough to do, I'll address that ASAP.
Regarding outside contributions, I'll need to get back to you on that, since the crate is part of my thesis project I need to check with my advisor.
The latest version 0.7.1
addresses the destination issue
@Michael-J-Ward I've checked and outside contributions are being accepted!
Version 0.8.0-rc1
supports labeling enumeration variants!
Example:
https://github.com/rustype/typestate-examples/blob/650e276be08b9ad3343a6d87734daa3b48508206/auction/src/main.rs#L22-L104