# 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_core"
version = "5.3.1-pre.0"
authors = ["The Tari Development Community"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core Tari protocol components"
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/tari-project/tari"
resolver = "2"

[package.metadata.cargo-machete]
ignored = ["hickory-proto"]

[features]
benches = []
default = []
metrics = ["tari_metrics"]
sqlite_bundled = ["tari_common_sqlite/bundled"]

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

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

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

[dependencies.anyhow]
version = "1.0"

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

[dependencies.bincode]
version = "1.1.4"

[dependencies.blake2]
version = "0.10"

[dependencies.borsh]
version = "1.5.7"
features = ["derive"]

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

[dependencies.digest]
version = "0.10"

[dependencies.dirs-next]
version = "1.0.2"

[dependencies.fs2]
version = "0.4.0"

[dependencies.futures]
version = "^0.3.16"
features = ["async-await"]

[dependencies.hex]
version = "0.4.2"

[dependencies.hickory-proto]
version = "0.26.0"

[dependencies.integer-encoding]
version = "3.0"

[dependencies.jmt]
version = "0.11.0"
features = ["mocks"]

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

[dependencies.log]
version = "0.4"

[dependencies.monero]
version = "0.21.0"
features = ["serde-crate"]

[dependencies.once_cell]
version = "1.8.0"

[dependencies.primitive-types]
version = "0.12"
features = ["serde"]

[dependencies.prost]
version = "0.13.3"

[dependencies.rand]
version = "0.10.1"

[dependencies.randomx-rs]
version = "1.4"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_valid]
version = "1.0.5"

[dependencies.sha2]
version = "0.10"

[dependencies.sha3]
version = "0.10"

[dependencies.strum_macros]
version = "0.22"

[dependencies.tari_common]
version = "5.3.1-pre.0"

[dependencies.tari_common_sqlite]
version = "5.3.1-pre.0"

[dependencies.tari_common_types]
version = "5.3.1-pre.0"

[dependencies.tari_comms]
version = "5.3.1-pre.0"
features = ["rpc"]

[dependencies.tari_comms_dht]
version = "5.3.1-pre.0"
default-features = false

[dependencies.tari_comms_rpc_macros]
version = "5.3.1-pre.0"

[dependencies.tari_crypto]
version = "0.23"
features = ["borsh"]

[dependencies.tari_hashing]
version = "5.3.1-pre.0"

[dependencies.tari_max_size]
version = "5.3.1-pre.0"

[dependencies.tari_metrics]
version = "5.3.1-pre.0"
optional = true

[dependencies.tari_mmr]
version = "5.3.1-pre.0"

[dependencies.tari_node_components]
version = "5.3.1-pre.0"

[dependencies.tari_p2p]
version = "5.3.1-pre.0"

[dependencies.tari_script]
version = "5.3.1-pre.0"

[dependencies.tari_service_framework]
version = "5.3.1-pre.0"

[dependencies.tari_shutdown]
version = "5.3.1-pre.0"

[dependencies.tari_sidechain]
version = "5.3.1-pre.0"

[dependencies.tari_storage]
version = "5.3.1-pre.0"

[dependencies.tari_test_utils]
version = "5.3.1-pre.0"

[dependencies.tari_transaction_components]
version = "5.3.1-pre.0"

[dependencies.tari_utilities]
version = "0.10"
features = ["borsh"]

[dependencies.thiserror]
version = "2"

[dependencies.tiny-keccak]
version = "2.0.2"
features = ["keccak"]
package = "tari-tiny-keccak"

[dependencies.tokio]
version = "1.47"
features = [
    "time",
    "sync",
    "macros",
    "net",
]

[dependencies.tracing]
version = "0.1.26"

[dependencies.url]
version = "2.5.4"

[dev-dependencies.config]
version = "0.14.0"

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

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

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

[dev-dependencies.serial_test]
version = "0.5"

[dev-dependencies.tari_p2p]
version = "5.3.1-pre.0"
features = ["test-mocks"]

[dev-dependencies.tari_test_utils]
version = "5.3.1-pre.0"

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

[build-dependencies.tari_common]
version = "5.3.1-pre.0"
features = ["build"]

[build-dependencies.tari_features]
version = "5.3.1-pre.0"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(tari_target_network_mainnet)",
    "cfg(tari_target_network_nextnet)",
    "cfg(tari_target_network_testnet)",
]
