blob: 01c3ec0c5108b18cbf7a0385578f3bbc82bce63d [file] [log] [blame]
// This crate crawls the Syn source directory to find all structs and enums that
// form the Syn syntax tree.
//
// A machine-readable representation of the syntax tree is saved to syn.json in
// the repo root for other code generation tools to consume. The syn-codegen
// crate (https://docs.rs/syn-codegen/) provides the data structures for parsing
// and making use of syn.json from Rust code.
//
// Finally this crate generates the Visit, VisitMut, and Fold traits in Syn
// programmatically from the syntax tree description.
#![recursion_limit = "128"]
#![allow(clippy::needless_pass_by_value)]
mod file;
mod gen;
mod json;
mod parse;
mod version;
fn main() {
let defs = parse::parse();
json::generate(&defs);
gen::generate(&defs);
}