Expand description
Procedural macros for Mae-Technologies micro-services.
This crate provides attribute and derive macros used across the Mae service ecosystem to reduce boilerplate for Actix-Web app setup, Postgres repository binding, and async integration testing.
see the Mae library for more details.
§Macros
§Attribute macros
run_app— rewrites anasync fn run(…)stub into a complete Actix-Web server setup (session middleware, tracing, data extractors, listener binding).schema— binds a struct to a Postgres schema, injecting standard audit columns and deriving [MaeRepo] plus the required SQL helper types.schema_root— likeschemabut omits thesys_clientforeign-key column; used for the rootsys_clienttable itself.mae_test— wraps anasync fntest in a multi-threaded Tokio runtime, enforces Mae hygiene rules (no raw.unwrap()/assert*!), and supports optional docker-gating and teardown.
§Derive macros
- [
MaeRepo] — generatesInsertRow,UpdateRow,Field, andPatchFieldtypes for a repository struct, wiring them to themae::repoSQL layer.
Attribute Macros§
- mae_
test #[mae_test]— the standard macro for async journey tests in Mae services.- run_app
- Rewrites a single-statement function body into a full Actix-Web server setup.
- schema
- Binds a struct to a Postgres schema and injects standard Mae repository columns.
- schema_
root - Like
schemabut omits the auto-injectedsys_clientfield.