[package]
name = "ddd-rs"
version = "0.1.8"
edition = "2021"
authors = ["Gabriel Kim <gabrielkim13@gmail.com>"]
license = "MIT"
description = "Domain-Driven Design (DDD) building blocks, for Rust applications."
repository = "https://github.com/gabrielkim13/ddd-rs"
homepage = "https://github.com/gabrielkim13/ddd-rs"
categories = ["rust-patterns"]

[dependencies]
async-trait = "0.1"
chrono = "0.4"
ddd-rs-derive = { version = "=0.1.8", optional = true, path = "../ddd-rs-derive" }
futures = "0.3"
serde = { version = "1", optional = true, features = ["derive"] }
thiserror = "1"
uuid = { version = "1", features = ["v4"] }

[dev-dependencies]
ddd-rs-derive = { version = "0.1", path = "../ddd-rs-derive" }
tokio-test = "0.4"

[features]
default = ["derive", "serde"]

# Provides `derive` macros.
derive = ["ddd-rs-derive"]

# Implements `serde::Serialize` and `serde::Deserialize` for the Presentation Layer types.
serde = ["dep:serde"]
