Skip to main content

Crate autumn_macros_model

Crate autumn_macros_model 

Source
Expand description

Database-model proc macros for the Autumn web framework.

This crate provides the database-layer attribute macros: #[model], #[commentable] (consumed by #[model]), and #[service]. It is split out of autumn-macros so a build that never touches the database layer never compiles this codegen.

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

Attribute Macros§

model
Attribute macro for Autumn database models.
service
Define a service for cross-model orchestration and non-DB side effects.