Expand description
Rust file emission for the resolved Registry.
write_rust collects every resolved input/output converter (each entry
already carries its full ItemFn), every per-item on_<kind> output,
and every anonymous const; concatenates them; and hands them to
Destination::write (which does prettyplease formatting and
resolves the path against OUT_DIR).
This module is pub, so every pub item in it is public API of the
crate. That is meant to be exactly two — write_rust and
WriteError — which is what an out-of-crate adapter calls to emit its
generated file. Anything else added here stays private unless publishing it
is a deliberate decision.
Enums§
- Write
Error - Errors surfaced by the file-emission phase.
Functions§
- write_
rust - Emit the resolved registry to a Rust file.