Expand description
Emit a Rust source file that provides:
CASES: &[Case]— a static table of(message, api_key, version, kind)casesdefault_json_for(name)— JSON the oracle should accept for default fixtureencode_default(name, version)— Rust-encoded bytes fromDefault::default()TAGGED_CASES,encode_tagged_fixture(name, version)andtagged_fixture_json_for(name, version)— the same sweep over every message that has a tagged field, with each tagged field set
crates/protocol/tests/differential_all.rs consumes the file with
include!.
This module emits with proc_macro2 and quote! instead of writeln!.
See emit::api_key_enum_quote for the overall pattern.
Functions§
- emit
- Errors