Skip to main content

Module reference

Module reference 

Source
Expand description

API reference fragments: per-crate markdown generated from the surface — literal source signatures + doc comments, enriched with measured costs and verified claims from the baseline. Regenerated on demand so the reference cannot be stale: every number on the page was produced, never written.

Functions§

render
Render one crate’s surface as a markdown fragment (module-grouped). baseline supplies measurements and assertion verdicts; pass Value::Null to render signatures + docs only.
resolve_reference_links
Rustdoc comments often disambiguate intra-doc links with a reference-style definition ([`Foo::bar`]: crate::Foo::bar); the site’s markdown renderer only supports inline links. Drop each definition line and inline it into the shorthand [Foo::bar] references it defines. Doesn’t handle the separate [text][label] reference form — not seen in practice here.