Output format
- Inside of the output directly the tool always produces a
rust/directory (including Cargo.toml, etc). - Unless we pass in
--wasm=falsethe tool also generates a correspondingwasm/directory. - The default format for
rust/is to have alib.rscontaining the structs andserialization.rscontaining their (de)serialization implementations/corresponding types. - The
wasm/directory is full of wasm_bindgen-annotated wrappers all inlib.rsfor the corresponding rust-use-only structs inrust/and can be compiled for WASM builds by runningwasm-pack buildon it.
Example Output

note
The output format can change slightly depending on certain command line flags:
--wasm=false

--preserve-encodings=true

--json-schema-export true

--package-json true --json-schema-export true
