| Crates.io | storeit_macros |
| lib.rs | storeit_macros |
| version | 0.1.7 |
| created_at | 2025-08-20 08:23:06.739623+00 |
| updated_at | 2025-08-28 08:37:35.457922+00 |
| description | Procedural macros for the storeit repository library |
| homepage | |
| repository | https://github.com/dahankzter/storeit-rs/ |
| max_upload_size | |
| id | 1802996 |
| size | 59,246 |
Procedural macros for the storeit repository framework.
What it provides:
#[derive(Entity)]: generates compile-time metadata (table, columns) for your struct and can optionally generate backend-specific RowAdapter impls.#[repository] macro: generate a typed repository module for a specific backend and entity.Quick example (see the workspace README for full examples):
use storeit::Entity;
#[derive(Entity, Clone, Debug)]
pub struct User {
#[fetch(id)]
pub id: Option<i64>,
pub email: String,
pub active: bool,
}
These macros are used by the top-level storeit facade; most users will only import from storeit.
Links:
MSRV: 1.70 License: MIT OR Apache-2.0