statefun-rust
statefun-rust copied to clipboard
Macro to simplify user experience
Hi, It would be nice to have some procedural macro to simplify the user experience for:
- extracting the state from the context
- generate the main, avoiding the boilerplate
For example:
#[stateful_function("example/greet")]
pub fn greet(context: Context, request: GreetRequest, #[state("seen_count")] state: Option<Int32Value>) -> Effects {
//code
}
If you're interested in this feature, i'm willing to give it a try!
Hi,
I'd be interested in something like this, yes! And sorry for the late response, I was on vacation for three weeks!
Cool, I'm gonna give it a shot soon! :smile: