# 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_common"
version = "5.3.0-pre.4"
authors = ["The Tari Development Community"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Utilities and features for the Tari domain layer, shared across both Base and Digital Asset layers."
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/tari-project/tari"
resolver = "2"

[features]
build = [
    "toml",
    "prost-build",
]
static-application-info = ["git2"]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.cargo_toml]
version = "0.20.4"

[dependencies.config]
version = "0.14.0"
features = ["toml"]
default-features = false

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

[dependencies.git2]
version = "0.20.4"
optional = true
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.log4rs]
version = "1.4"
features = [
    "config_parsing",
    "threshold_filter",
    "yaml_format",
]
default-features = false

[dependencies.multiaddr]
version = "0.14.0"

[dependencies.path-clean]
version = "0.1.0"

[dependencies.prost-build]
version = "0.11.9"
optional = true

[dependencies.serde]
version = "1"

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9.17"

[dependencies.sha2]
version = "0.10"

[dependencies.structopt]
version = "0.3.13"
default-features = false

[dependencies.tari_features]
version = "5.3.0-pre.4"

[dependencies.tempfile]
version = "3.1.0"

[dependencies.thiserror]
version = "2"

[dependencies.toml]
version = "0.5"
optional = true

[dev-dependencies.tari_test_utils]
version = "5.3.0-pre.4"

[dev-dependencies.toml]
version = "0.5.8"

[build-dependencies.tari_features]
version = "5.3.0-pre.4"

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