Skip to main content

Crate autumn_macros_support

Crate autumn_macros_support 

Source
Expand description

Shared implementation helpers for Autumn’s proc-macro crates.

This is a plain library — not a proc-macro crate. It holds the parsing, path-rewriting, schema, and naming helpers used by autumn-macros, autumn-macros-model, and autumn-macros-repository. Each proc-macro dylib links its own copy, so the logic is written once but the per-dylib compile cost stays proportional to the macros that dylib actually registers.

One exception: the analysers module (feature analysers) holds the bodies of #[query_budget] and #[agent_operable], which only autumn-macros registers. They are here because autumn-web waits for the proc-macro crate, and Cargo builds a library in parallel with other crates (#2795).

Users should not depend on this crate directly — use autumn-web instead, which re-exports everything.

Modules§

cascade
Const items that publish which models a delete also writes.
crate_path
Resolve the identifier generated code should use in place of the literal ::autumn_web crate-root segment (issue #1828).
graph
Shared tokens for the architecture-graph descriptors (issue #1747).
naming
Naming conventions shared by the model/repository codegen.
schema
Field-level serde / JSON-schema helpers shared by the #[model] macro and the #[derive(OpenApiSchema)] derive.
wire
The wire descriptors: what one service endpoint puts on, and takes off, the wire.