Output format
- Inside of the output directly the tool always produces a
rust/
directory (including Cargo.toml, etc). - Unless we pass in
--wasm=false
the tool also generates a correspondingwasm/
directory. - The default format for
rust/
is to have alib.rs
containing the structs andserialization.rs
containing their (de)serialization implementations/corresponding types. - The
wasm/
directory is full of wasm_bindgen-annotated wrappers all inlib.rs
for the corresponding rust-use-only structs inrust/
and can be compiled for WASM builds by runningwasm-pack build
on 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