Skip to main content

Module metadata

Module metadata 

Source
Expand description

Structured contract metadata for AI agent consumption. Structured contract metadata for generated Rust projects.

Produces a machine-readable assura-contracts.json sidecar that AI agents can parse to understand which contracts apply to which functions, what pre/post-conditions exist, and what types are involved.

Structs§

ContractMeta
Metadata for a single contract, extern, or function.
ParamMeta
Parameter metadata.
ProjectMetadata
Root metadata for a generated project.
ReturnTypeMeta
Return type metadata.

Functions§

extract_metadata
Extract structured metadata from a typed file.
implementation_guidance_comment
Generate structured implementation guidance comment for a contract. This appears above the todo!() placeholder in generated code.