pub fn forge(spec: &AdapterSpec) -> ScaffoldOutputExpand description
Forge a fresh adapter scaffold from a typed spec. Produces a directory’s worth of starter files:
Cargo.toml(with the right deps for the format)src/lib.rs(parse(root) skeleton + dispatch + Manifest assembly)src/error.rs(typed error enum matching the format’s failure modes)src/raw.rs(serde shapes for the marker files when JSON/YAML/TOML)tests/smoke.rs(one integration test that asserts the adapter can ingest an empty manifest without panic)
The output is deliberately a starter — the adapter author then fleshes out the format-specific parsing. ~80% of the boilerplate is gone.