# 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.90.0"
name = "affinidi-did-resolver-cache-sdk"
version = "0.7.3"
authors = ["Glenn Gore <glenn@affinidi.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Affinidi DID Resolver SDK"
homepage = "https://affinidi.com/"
readme = "README.md"
keywords = [
    "ssi",
    "affinidi",
]
license = "Apache-2.0"
repository = "https://github.com/affinidi/affinidi-tdk-rs"

[features]
default = [
    "local",
    "did-methods",
]
did-cheqd = ["dep:did-resolver-cheqd"]
did-jwk = ["dep:did-jwk"]
did-methods = [
    "did-cheqd",
    "did-webvh",
    "did-scid",
]
did-scid = ["dep:did-scid"]
did-webvh = ["dep:didwebvh-rs"]
did_example = ["dep:did-example"]
local = []
network = [
    "dep:web-socket",
    "dep:url",
    "dep:sha1",
    "dep:base64",
    "dep:tokio-rustls",
    "dep:rustls",
    "dep:rustls-platform-verifier",
]

[lib]
name = "affinidi_did_resolver_cache_sdk"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"

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

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

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

[dependencies.ahash]
version = "0.8"

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.did-ethr]
version = "0.3"

[dependencies.did-example]
version = "0.5"
optional = true

[dependencies.did-jwk]
version = "0.2"
optional = true

[dependencies.did-pkh]
version = "0.3"

[dependencies.did-resolver-cheqd]
version = "1.0"
optional = true

[dependencies.did-scid]
version = "0.1"
optional = true

[dependencies.did-web]
version = "0.3"

[dependencies.didwebvh-rs]
version = "0.1"
optional = true

[dependencies.futures-util]
version = "0.3"

[dependencies.highway]
version = "1.3.0"

[dependencies.moka]
version = "0.12"
features = ["future"]

[dependencies.rand]
version = "0.10"

[dependencies.rustls]
version = "0.23"
features = [
    "aws_lc_rs",
    "tls12",
]
optional = true
default-features = false

[dependencies.rustls-platform-verifier]
version = "0.6"
optional = true

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]

[dependencies.serde-wasm-bindgen]
version = "0.6.5"

[dependencies.serde_json]
version = "1.0"

[dependencies.sha1]
version = "0.10"
optional = true

[dependencies.ssi-dids-core]
version = "0.1"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.49"
features = ["full"]

[dependencies.tokio-rustls]
version = "0.26"
optional = true

[dependencies.tracing]
version = "0.1"

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

[dependencies.url]
version = "2.5"
optional = true

[dependencies.wasm-bindgen]
version = "0.2"

[dependencies.wasm-bindgen-futures]
version = "0.4"

[dependencies.web-socket]
version = "0.7"
optional = true

[dev-dependencies.affinidi-crypto]
version = "0.1"

[dev-dependencies.affinidi-secrets-resolver]
version = "0.5"

[dev-dependencies.clap]
version = "4.5"
features = ["derive"]

[dev-dependencies.num-format]
version = "0.4"

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

[dev-dependencies.rayon]
version = "1.11"

[dev-dependencies.url]
version = "2.5"

[lints.clippy]
uninlined_format_args = "warn"
