# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "dat"
version = "4.2.1"
authors = ["marker <j@saro.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DAT - Distributed Access Token"
homepage = "https://dat.saro.me/"
documentation = "https://dat.saro.me/libs/cargo-dat"
readme = "README.md"
keywords = [
    "dat",
    "distributed",
    "access",
    "token",
    "session",
]
license = "MIT"
repository = "https://github.com/saro-lab/dat-rust"

[features]
dat_cms = [
    "dep:tokio",
    "dep:reqwest",
]
default = []
full = [
    "dat_cms",
    "tracing",
]
tracing = ["dep:tracing"]

[lib]
name = "dat"
path = "src/lib.rs"

[[test]]
name = "bench_b64_test"
path = "tests/bench_b64_test.rs"

[[test]]
name = "bench_crypto_test"
path = "tests/bench_crypto_test.rs"

[[test]]
name = "bench_ecdsa_test"
path = "tests/bench_ecdsa_test.rs"

[[test]]
name = "bench_test"
path = "tests/bench_test.rs"

[[test]]
name = "certificate_test"
path = "tests/certificate_test.rs"

[[test]]
name = "crypto_test"
path = "tests/crypto_test.rs"

[[test]]
name = "example_cms_manager_test"
path = "tests/example_cms_manager_test.rs"

[[test]]
name = "hard_test"
path = "tests/hard_test.rs"

[[test]]
name = "manager_test"
path = "tests/manager_test.rs"

[[test]]
name = "signature_test"
path = "tests/signature_test.rs"

[dependencies.aes-gcm]
version = "0.11.0-rc.4"

[dependencies.base64]
version = "0.22.1"
features = [
    "alloc",
    "std",
]

[dependencies.itertools]
version = "0.15.0"

[dependencies.itoa]
version = "1.0.18"

[dependencies.reqwest]
version = "0.13.4"
features = [
    "native-tls-vendored",
    "query",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.52.3"
features = ["time"]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1.44"
optional = true

[dev-dependencies.rand]
version = "0.10.1"

[dev-dependencies.ring]
version = "0.17.14"

[dev-dependencies.tokio]
version = "1.52.3"
features = ["full"]

[dev-dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]

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

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

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