Skip to main content

generate

Function generate 

Source
pub fn generate(dist: &Distribution) -> GeneratedDistConfig
Expand description

Render a dist-workspace.toml from a normalized Distribution block.

Assumes the block has already been through the normalizer (so platforms is non-empty and every triple is well-formed, and installers is canonically ordered and de-duplicated). Reads only platforms and installers; the adapter gate (cargo-dist vs goreleaser/manual) is the caller’s, since this renderer only knows how to emit cargo-dist config.