[package]
name = "dat"
version = "4.0.2"
edition = "2024"
authors = ["marker <j@saro.me>"]
description = "DAT - Distributed Access Token"
repository = "https://github.com/saro-lab/dat-rust"
keywords = ["dat", "distributed", "access", "token", "session"]
homepage = "https://dat.saro.me/"
documentation = "https://dat.saro.me/--/libs/cargo-dat"
license = "MIT"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = 'abort'

[dependencies]
itoa = { version = "1.0.18" }
strum = { version = "0.28.0" }
strum_macros = { version = "0.28.0" }
aes-gcm = { version = "0.11.0-rc.3"}
base64 = { version = "0.22.1", features = ["alloc", "std"] }
itertools = { version = "0.14.0" }

[target.'cfg(windows)'.dependencies]
aws-lc-rs = { version = "1.17.0", features = ["prebuilt-nasm"] }

[target.'cfg(not(windows))'.dependencies]
aws-lc-rs = { version = "1.17.0" }

[dev-dependencies]
tokio = { version = "1.52.3", features = ["full"] }
ring = { version = "0.17.14" }
rand = { version = "0.10.1" }

