#flow #attributes #help #macro #input #definition #wasm

nightly macro flow_macro

Definition of a 'flow' attribute macro to help write implementations

2 unstable releases

0.42.0 Feb 16, 2022
0.40.1 Feb 2, 2022

#160 in #flow

MIT license

275KB
6K SLoC

flow_macro

See also: Code docs

Flow is an attribute macro to be used on the structure that provides an implementation for a function (by implementing the FlowImpl trait), so that when compiled for the wasm32 target, code is inserted to help read the inputs, help form the outputs and allocate memory (alloc) as well as serialize and deserialize the data passed across the native/wasm boundary.


lib.rs:

flow_function is a proc_macro_attribute macro that inserts code around a supplied function to form a struct that implements the Implementation trait, and adds some helper functions for wasm

Dependencies

~7–20MB
~309K SLoC