# 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"
rust-version = "1.95.0"
name = "affinidi-tsp"
version = "0.1.10"
authors = ["Glenn Gore <glenn@affinidi.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Trust Spanning Protocol (TSP) implementation for the Affinidi TDK"
homepage = "https://affinidi.com/"
readme = "README.md"
keywords = [
    "ssi",
    "affinidi",
]
license = "Apache-2.0"
repository = "https://github.com/affinidi/affinidi-tdk-rs"

[features]
default = ["did-resolver"]
did-resolver = [
    "dep:affinidi-did-resolver-cache-sdk",
    "dep:affinidi-did-common",
    "dep:affinidi-encoding",
    "dep:tokio",
]
messaging-core = [
    "dep:affinidi-messaging-core",
    "dep:async-trait",
]

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

[[example]]
name = "alice_and_bob"
path = "examples/alice_and_bob.rs"

[dependencies.affinidi-cesr]
version = "0.1"

[dependencies.affinidi-did-common]
version = "0.3"
optional = true

[dependencies.affinidi-did-resolver-cache-sdk]
version = "0.8"
optional = true

[dependencies.affinidi-encoding]
version = "0.1"
optional = true

[dependencies.affinidi-messaging-core]
version = "0.1"
optional = true

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.blake2]
version = "0.10"

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.ed25519-dalek]
version = "2"
features = ["rand_core"]

[dependencies.hex]
version = "0.4"

[dependencies.hkdf]
version = "0.12"

[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "macros",
    "rt-multi-thread",
]
optional = true

[dependencies.url]
version = "2"
features = ["serde"]

[dependencies.x25519-dalek]
version = "2"
features = ["static_secrets"]

[dependencies.zeroize]
version = "1"
features = ["derive"]

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

[lints.clippy]
uninlined_format_args = "warn"
