MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / node_derive

Function node_derive

flow-derive/src/lib.rs:57–60  ·  view source on GitHub ↗
(input: TokenStream)

Source from the content-addressed store, hash-verified

55
56#[proc_macro_derive(Node)]
57pub 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))]

Callers

nothing calls this directly

Calls 1

expandFunction · 0.70

Tested by

no test coverage detected