[package]
edition = "2024"
rust-version = "1.95"
name = "entity-derive"
version = "0.8.6"
authors = ["RAprogramm <andrey.rozanov.vl@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive macro for generating DTOs, repositories, and SQL from a single entity definition"
documentation = "https://docs.rs/entity-derive"
readme = "README.md"
keywords = [
"derive",
"macro",
"entity",
"dto",
"repository",
]
categories = [
"development-tools::procedural-macro-helpers",
"database",
]
license = "MIT"
repository = "https://github.com/RAprogramm/entity-derive"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
aggregate_root = ["entity-derive-impl/aggregate_root"]
api = []
clickhouse = ["entity-core/clickhouse"]
commands = ["entity-derive-impl/commands"]
default = [
"postgres",
"events",
"commands",
"hooks",
"transactions",
"aggregate_root",
"migrations",
"projections",
]
events = ["entity-derive-impl/events"]
hooks = ["entity-derive-impl/hooks"]
migrations = ["entity-derive-impl/migrations"]
mongodb = ["entity-core/mongodb"]
postgres = ["entity-core/postgres"]
projections = ["entity-derive-impl/projections"]
streams = [
"entity-core/streams",
"events",
]
tracing = ["entity-core/tracing"]
transactions = ["entity-derive-impl/transactions"]
validate = []
[lib]
name = "entity_derive"
path = "src/lib.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "streams"
path = "tests/streams.rs"
[dependencies.entity-core]
version = "0.6"
[dependencies.entity-derive-impl]
version = "0.6"
default-features = false
[dev-dependencies.async-trait]
version = "0.1"
[dev-dependencies.chrono]
version = "0.4"
features = ["serde"]
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"postgres",
"uuid",
"chrono",
"derive",
]
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
]
[dev-dependencies.tracing]
version = "0.1"
[dev-dependencies.trybuild]
version = "1"
[dev-dependencies.utoipa]
version = "5"
features = [
"chrono",
"uuid",
]
[dev-dependencies.uuid]
version = "1"
features = [
"v4",
"v7",
"serde",
]
[dev-dependencies.validator]
version = "0.20"
features = ["derive"]