- code-shaped fixture set: writer + validator template kinds over one composed partial, no-op escaper, strict mode, all public API - ADR-004 mappings in builder Rust (kind->call names, struct name, string-kind flag, source-quoted literals); templates stay dumb - document order (not sort/hash/reverse) drives rendered order; reordered arrays render in the array's new order - determinism: byte-identical across repeated renders, registry rebuilds, differing registration orders, fresh contexts, and both sinks (render vs render_to_write) - banner stays an emit-layer obligation; no banner assertions in the proof (gap recorded in task Notes, honestly) Verification: cargo test (38 passed), cargo clippy --all-targets -- -D warnings, cargo fmt --check, taskgraph validate
11 lines
257 B
Handlebars
11 lines
257 B
Handlebars
{{#each default_consts}}pub const {{const_name}}: &str = {{literal}};
|
|
{{/each}}
|
|
impl {{struct_name}} {
|
|
pub fn write<W: std::io::Write>(&self, out: &mut W) -> std::io::Result<()> {
|
|
{{#each fields}}
|
|
{{> field-write-line}}
|
|
{{/each}}
|
|
Ok(())
|
|
}
|
|
}
|