Syn builder
Builder functions for syn
structures and enums to ease the generation of Rust code.
Note: only syn structures are creating using the builder methods - there no intermediate structs to manage.
Usage
- Add to your Cargo.toml file
[]
= "0.2.0"
- Import builder functions and create syn objects
use TokenStream;
use ToTokens;
use *;
Alternatives
- quote - generate syn structs by writing Rust code and using variable interpolation