storeit_macros

Crates.iostoreit_macros
lib.rsstoreit_macros
version0.1.7
created_at2025-08-20 08:23:06.739623+00
updated_at2025-08-28 08:37:35.457922+00
descriptionProcedural macros for the storeit repository library
homepage
repositoryhttps://github.com/dahankzter/storeit-rs/
max_upload_size
id1802996
size59,246
Henrik Johansson (dahankzter)

documentation

README

storeit_macros

Crates.io Docs.rs

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

Commit count: 26

cargo fmt