Skip to main content

Module emit

Module emit 

Source

Re-exports§

pub use self::owned::EmitError;

Modules§

api_key_enum_quote
The ApiKey enum, built as a proc_macro2 token stream via quote! instead of hand-written write! string templating.
borrowed
Emit Rust source for the borrowed flavor of a MessageSpec.
borrowed_quote
A quote!-based reimplementation of the borrowed emitter.
common
default_json
Emit pub fn default_json(version: i16) -> serde_json::Value per message.
differential_table
Emit a Rust source file that provides:
mod_rs
Generate the mod.rs files for crates/protocol/src/{owned,borrowed}/.
owned
Emit Rust source for the owned flavor of a MessageSpec.
owned_quote
A quote!-based reimplementation of the owned emitter.
protocol_request
Emit impl crate::ProtocolRequest for <RequestType> blocks.
tagged_fixture
Emit tagged_fixture() and tagged_fixture_json(version) for each message that has a KIP-482 tagged field at any depth.
wrappers
Generate the include! wrapper module bodies under crates/protocol/src/{owned,borrowed}/<snake>.rs.

Structs§

EmittedMessage
The output of a single emitter run for one MessageSpec.