entity-derive 0.5.0

Derive macro for generating DTOs, repositories, and SQL from a single entity definition
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-FileCopyrightText: 2025-2026 RAprogramm <andrey.rozanov.vl@gmail.com>
// SPDX-License-Identifier: MIT

use entity_derive::Entity;

/// Entity without #[id] field should fail.
#[derive(Entity)]
#[entity(table = "items")]
pub struct Item {
    pub name: String,
    pub value: i32,
}

fn main() {}