Skip to main content

Crate rustio_macros

Crate rustio_macros 

Source
Expand description

Procedural macros for RustIO.

The big one: #[derive(RustioAdmin)]. Given a user-written struct, the derive emits:

  • impl AdminModel for TheStruct with ADMIN_NAME, DISPLAY_NAME, SINGULAR_NAME, FIELDS, and the row/form/update helpers.

The macro deliberately stays dumb: all runtime behaviour lives in rustio_core. Keeping the macro small makes it easier to debug — if something feels wrong, you can read the generated code with cargo expand.

Derive Macros§

RustioAdmin