# 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.93.0"
name = "tari_comms_dht"
version = "5.4.0-pre.7"
authors = ["The Tari Development Community"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tari comms DHT module"
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/tari-project/tari"
resolver = "2"

[features]
test-mocks = []

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.bitflags]
version = "2.4"
features = ["serde"]

[dependencies.blake2]
version = "0.10"

[dependencies.chacha20]
version = "0.7.1"

[dependencies.chacha20poly1305]
version = "0.10.1"

[dependencies.chrono]
version = "0.4"
default-features = false

[dependencies.diesel]
version = "2.3.8"
features = [
    "sqlite",
    "serde_json",
    "chrono",
    "numeric",
]

[dependencies.diesel_migrations]
version = "2.3"

[dependencies.digest]
version = "0.10"

[dependencies.futures]
version = "^0.3.1"

[dependencies.futures-util]
version = "^0.3.1"

[dependencies.log]
version = "0.4"

[dependencies.pin-project]
version = "0.4"

[dependencies.prost]
version = "0.13.3"

[dependencies.rand]
version = "0.10.1"

[dependencies.serde]
version = "1"

[dependencies.tari_common]
version = "5.4.0-pre.7"

[dependencies.tari_common_sqlite]
version = "5.4.0-pre.7"

[dependencies.tari_comms]
version = "5.4.0-pre.7"
features = ["rpc"]

[dependencies.tari_comms_rpc_macros]
version = "5.4.0-pre.7"

[dependencies.tari_crypto]
version = "0.23"

[dependencies.tari_shutdown]
version = "5.4.0-pre.7"

[dependencies.tari_utilities]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.47"
features = [
    "rt",
    "macros",
]

[dependencies.tower]
version = "0.4"
features = ["full"]

[dependencies.zeroize]
version = "1"

[dev-dependencies.clap]
version = "4"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.futures-test]
version = "0.3.5"

[dev-dependencies.lmdb-zero]
version = "0.4.4"

[dev-dependencies.once_cell]
version = "1.8.0"

[dev-dependencies.petgraph]
version = "0.5.1"

[dev-dependencies.tari_test_utils]
version = "5.4.0-pre.7"

[dev-dependencies.tempfile]
version = "3.1.0"

[dev-dependencies.tokio-stream]
version = "0.1.9"
features = ["sync"]

[build-dependencies.tari_common]
version = "5.4.0-pre.7"
