# 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.94.0"
name = "didwebvh-rs"
version = "0.5.0"
authors = ["Glenn Gore <glenn@affinidi.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Implementation of the did:webvh method in Rust"
homepage = "https://didwebvh.info/"
readme = "README.md"
keywords = [
    "ssi",
    "did",
    "webvh",
    "verifiable",
]
categories = [
    "authentication",
    "cryptography",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/decentralized-identity/didwebvh-rs"

[package.metadata.cargo-machete]
ignored = ["getrandom"]

[features]
cli = [
    "dep:dialoguer",
    "dep:console",
]
default = ["network"]
experimental-pqc = [
    "affinidi-data-integrity/post-quantum",
    "affinidi-secrets-resolver/post-quantum",
]
native-tls = [
    "network",
    "reqwest/native-tls",
]
network = ["dep:reqwest"]
rustls = [
    "network",
    "reqwest/rustls",
]
ssi = [
    "dep:ssi",
    "network",
]

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

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

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

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

[[example]]
name = "generate_history"
path = "examples/generate_history.rs"
required-features = ["network"]

[[example]]
name = "generate_large_did"
path = "examples/generate_large_did.rs"
required-features = ["network"]

[[example]]
name = "resolve"
path = "examples/resolve.rs"
required-features = ["network"]

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

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

[[example]]
name = "wizard"
path = "examples/wizard/main.rs"
required-features = [
    "network",
    "cli",
]

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

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

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

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

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

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

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

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

[[bench]]
name = "did_benchmarks"
path = "benches/did_benchmarks.rs"
harness = false

[[bench]]
name = "did_benchmarks_nightly"
path = "benches/did_benchmarks_nightly.rs"

[dependencies.affinidi-data-integrity]
version = "0.5"

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

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

[dependencies.ahash]
version = "0.8"
features = ["serde"]

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

[dependencies.base58]
version = "0.2"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.console]
version = "0.16"
optional = true

[dependencies.dialoguer]
version = "0.12"
optional = true

[dependencies.getrandom]
version = "0.4"
features = ["wasm_js"]

[dependencies.reqwest]
version = "0.13"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_json_canonicalizer]
version = "0.3"

[dependencies.serde_with]
version = "3.18"

[dependencies.sha2]
version = "0.11"

[dependencies.ssi]
version = "0.16"
features = ["secp384r1"]
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.50"

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5"

[dev-dependencies.anyhow]
version = "1.0"

[dev-dependencies.byte-unit]
version = "5.2"

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

[dev-dependencies.console]
version = "0.16"

[dev-dependencies.criterion]
version = "0.8"
features = ["async_tokio"]

[dev-dependencies.dialoguer]
version = "0.12"

[dev-dependencies.format_num]
version = "0.1.0"

[dev-dependencies.proptest]
version = "1"

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

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

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
    "json",
    "valuable",
]

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
assigning_clones = "allow"
case_sensitive_file_extension_comparisons = "allow"
doc_markdown = "allow"
explicit_iter_loop = "allow"
format_push_string = "allow"
implicit_clone = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wild_err_arm = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_bool = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
option_option = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_char_pattern = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
uninlined_format_args = "allow"
unnecessary_semicolon = "allow"
unnecessary_trailing_comma = "allow"
unnecessary_wraps = "allow"
used_underscore_binding = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
warnings = "warn"
