# 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 = "snarkos-node-router"
version = "4.7.3"
authors = ["The Aleo Team <hello@aleo.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A node router for a decentralized operating system"
homepage = "https://aleo.org"
readme = "README.md"
keywords = [
    "aleo",
    "cryptography",
    "blockchain",
    "decentralized",
    "zero-knowledge",
]
categories = [
    "cryptography",
    "cryptography::cryptocurrencies",
    "os",
]
license = "Apache-2.0"
repository = "https://github.com/ProvableHQ/snarkOS"

[features]
cuda = [
    "snarkvm/cuda",
    "snarkos-account/cuda",
]
locktick = [
    "dep:locktick",
    "snarkos-node-tcp/locktick",
    "snarkvm/locktick",
    "snarkos-node-network/locktick",
]
metrics = [
    "dep:snarkos-node-metrics",
    "snarkos-node-network/metrics",
]
serial = ["snarkos-node-bft-ledger-service/serial"]
test = []

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

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

[dependencies.colored]
version = "3"

[dependencies.futures]
version = "0.3.30"
features = ["thread-pool"]

[dependencies.linked-hash-map]
version = "0.5"

[dependencies.locktick]
version = "0.5"
features = ["parking_lot"]
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.rand]
version = "0.10"
default-features = false

[dependencies.rand_chacha]
version = "0.10"
default-features = false

[dependencies.rayon]
version = "1"

[dependencies.snarkos-account]
version = "=4.7.3"

[dependencies.snarkos-node-bft-ledger-service]
version = "=4.7.3"
features = [
    "ledger",
    "ledger-write",
    "prover",
]
default-features = false

[dependencies.snarkos-node-metrics]
version = "=4.7.3"
optional = true

[dependencies.snarkos-node-network]
version = "=4.7.3"

[dependencies.snarkos-node-router-messages]
version = "=4.7.3"

[dependencies.snarkos-node-sync-communication-service]
version = "=4.7.3"

[dependencies.snarkos-node-sync-locators]
version = "=4.7.3"

[dependencies.snarkos-node-tcp]
version = "=4.7.3"

[dependencies.snarkos-utilities]
version = "=4.7.3"

[dependencies.snarkvm]
version = "=4.7.3"
default-features = false

[dependencies.time]
version = "0.3"

[dependencies.tokio]
version = "1.48"
features = [
    "io-util",
    "macros",
    "net",
    "rt-multi-thread",
    "signal",
    "sync",
    "time",
]

[dependencies.tokio-stream]
version = "=0.1"

[dependencies.tokio-util]
version = "0.7"
features = ["codec"]

[dependencies.tracing]
version = "0.1"
default-features = false

[dev-dependencies.deadline]
version = "0.2"

[dev-dependencies.futures-util]
version = "0.3"
features = ["sink"]

[dev-dependencies.peak_alloc]
version = "0.2"

[dev-dependencies.snarkos-node-bft-ledger-service]
version = "=4.7.3"
features = [
    "ledger-write",
    "test",
]
default-features = false

[dev-dependencies.snarkos-node-router-messages]
version = "=4.7.3"
features = ["test"]

[dev-dependencies.snarkvm]
version = "=4.7.3"
features = ["test-helpers"]
default-features = false
