(input: TokenStream)
| 55 | |
| 56 | #[proc_macro_derive(Node)] |
| 57 | pub fn node_derive(input: TokenStream) -> TokenStream { |
| 58 | let input = parse_macro_input!(input as DeriveInput); |
| 59 | node::expand(input).into() |
| 60 | } |
| 61 | |
| 62 | /// attributes(local): spawn actor by `flow_rs::rt::task::spawn_local` |
| 63 | #[proc_macro_derive(Actor, attributes(local))] |