[package]
edition = "2024"
rust-version = "1.95"
name = "entity-derive"
version = "0.7.0"
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]
api = []
clickhouse = ["entity-core/clickhouse"]
default = ["postgres"]
mongodb = ["entity-core/mongodb"]
postgres = ["entity-core/postgres"]
streams = ["entity-core/streams"]
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.5"
[dependencies.entity-derive-impl]
version = "0.5"
[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.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"]