[package]
name = "eventdbx"
description = "Immutable, event-sourced, nosql, write-side database system."
version = "3.18.6"
edition = "2024"
homepage = "https://github.com/eventdbx/eventdbx"
repository = "https://github.com/eventdbx/eventdbx"
keywords = [
  "immutable",
  "events",
  "event-sourcing",
  "database",
  "cqrs"
]
categories = ["database"]
authors = ["Patrick Thach <thachp@gmail.com>"]
license = "MIT"

exclude = [
    "docs/*",
    "examples/*",
    "benchmarks/*",
    ".github/*",
    "scripts/*",
    "Makefile",
    "Dockerfile"
]

[package.metadata.wix]
upgrade-guid = "C3705B3F-CA2E-4B74-AB5A-66924BD9CFD6"
path-guid = "3E98D6DA-6766-4596-BB7F-06EF47DFA5EA"
license = false
eula = false

[lib]
path = "src/lib/mod.rs"

[[bin]]
name = "dbx"
path = "src/main.rs"

[dependencies]
anyhow = "1.0"
axum = { version = "0.8", features = ["macros", "json"] }
chrono = { version = "0.4", features = ["serde"] }
clap = { version = "4.5", features = ["derive", "env"] }
dirs = "5.0"
hex = "0.4"
parking_lot = "0.12"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
regex = "1.10"
rust_decimal = "1.36"
sha2 = "0.10"
thiserror = "1.0"
tokio = { version = "1.45", features = ["rt-multi-thread", "macros", "signal", "process"] }
toml = "0.8"
tower-http = { version = "0.5", features = ["trace"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
tracing-appender = "0.2"
uuid = { version = "1.10", features = ["v4", "serde"] }
rocksdb = { version = "0.21", default-features = false, features = ["multi-threaded-cf"] }
csv = "1.3"
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "rustls-tls"] }
flate2 = "1.0"
tar = "0.4"
tempfile = "3.10"
rand_core = { version = "0.6", features = ["getrandom"] }
base64 = "0.21"
ring = "0.17"
tracing-futures = "0.2"
aes-gcm = "0.10"
lru = "0.12"
zip = { version = "0.6", default-features = false, features = ["deflate"] }
capnp = "0.19"
capnp-futures = "0.19"
tokio-util = { version = "0.7", features = ["compat"] }
futures = "0.3"
snow = "0.9"
semver = "1.0"
validator = { version = "0.16", features = ["card"] }
json-patch = "1.2"
similar = "2.7"
jsonwebtoken = "9.3"
once_cell = "1.19"
metrics = "0.22"
metrics-exporter-prometheus = "0.13"
xz2 = "0.1"
rayon = "1.10"

[features]
default = []

[dev-dependencies]
fake = "3"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
portpicker = "0.1"
assert_cmd = "2"
tower = { version = "0.5", default-features = false, features = ["util"] }

[build-dependencies]
capnpc = "0.19"

[target.'cfg(unix)'.dependencies]
libc = "0.2"

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.52", features = ["Win32_Foundation", "Win32_System_Threading"] }

# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"
