Skip to main content

Module driver

Module driver 

Source
Expand description

One generator run: load and validate the schemas, emit every message, and write the generated tree and its wrapper modules.

The binary parses the command line and calls run with fmt::rustfmt. Tests call it with a formatter built on fmt::prettyprint, which needs no rustfmt binary.

Enums§

RunError
An error from one generator run.

Functions§

run
Generate the protocol code for the schemas in schemas into out, and the wrapper modules into the protocol crate’s src beside it.