# 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 = "2021"
name = "ant-node"
version = "0.3.6"
authors = ["MaidSafe Developers <dev@maidsafe.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The Autonomi node binary"
homepage = "https://maidsafe.net"
readme = "README.md"
license = "GPL-3.0"
repository = "https://github.com/maidsafe/autonomi"

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

[[bin]]
name = "antnode"
path = "src/bin/antnode/main.rs"

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

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

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

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

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

[dependencies.ant-bootstrap]
version = "0.1.5"

[dependencies.ant-build-info]
version = "0.1.24"

[dependencies.ant-evm]
version = "0.1.9"

[dependencies.ant-logging]
version = "0.2.46"
features = ["process-metrics"]

[dependencies.ant-networking]
version = "0.3.5"

[dependencies.ant-protocol]
version = "1.0.0"

[dependencies.ant-service-management]
version = "0.4.8"

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

[dependencies.bls]
version = "8.0.1"
package = "blsttc"

[dependencies.bytes]
version = "1.0.1"
features = ["serde"]

[dependencies.chrono]
version = "~0.4.19"

[dependencies.clap]
version = "4.2.1"
features = ["derive"]

[dependencies.color-eyre]
version = "0.6.3"

[dependencies.const-hex]
version = "1.12.0"

[dependencies.crdts]
version = "7.3"
features = ["merkle"]
default-features = false

[dependencies.custom_debug]
version = "~0.6.1"

[dependencies.dirs-next]
version = "~2.0.0"

[dependencies.eyre]
version = "0.6.8"

[dependencies.file-rotate]
version = "0.7.3"

[dependencies.futures]
version = "~0.3.13"

[dependencies.hex]
version = "~0.4.3"

[dependencies.itertools]
version = "~0.12.1"

[dependencies.libp2p]
version = "0.55.0"
features = [
    "tokio",
    "dns",
    "kad",
    "macros",
]

[dependencies.num-traits]
version = "0.2"

[dependencies.prometheus-client]
version = "0.22"
optional = true

[dependencies.prost]
version = "0.9"

[dependencies.pyo3]
version = "0.23.4"
features = ["extension-module"]
optional = true

[dependencies.rand]
version = "~0.8.5"
features = ["small_rng"]

[dependencies.rayon]
version = "1.8.0"

[dependencies.rmp-serde]
version = "1.1.1"

[dependencies.self_encryption]
version = "~0.30.0"

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

[dependencies.strum]
version = "0.26.2"
features = ["derive"]

[dependencies.thiserror]
version = "1.0.23"

[dependencies.tokio]
version = "1.32.0"
features = [
    "io-util",
    "macros",
    "parking_lot",
    "rt",
    "sync",
    "time",
    "signal",
]

[dependencies.tokio-stream]
version = "~0.1.12"

[dependencies.tonic]
version = "0.6.2"

[dependencies.tracing]
version = "~0.1.26"

[dependencies.tracing-appender]
version = "~0.2.0"

[dependencies.tracing-opentelemetry]
version = "0.21"
optional = true

[dependencies.tracing-subscriber]
version = "0.3.17"
features = ["env-filter"]

[dependencies.walkdir]
version = "~2.5.0"

[dependencies.xor_name]
version = "5.0.0"

[dev-dependencies.ant-protocol]
version = "1.0.0"
features = ["rpc"]

[dev-dependencies.assert_fs]
version = "1.0.0"

[dev-dependencies.autonomi]
version = "0.3.6"

[dev-dependencies.evmlib]
version = "0.1.9"

[dev-dependencies.reqwest]
version = "0.12.2"
features = ["rustls-tls-manual-roots"]
default-features = false

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

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

[features]
default = ["open-metrics"]
extension-module = ["pyo3/extension-module"]
loud = ["ant-networking/loud"]
nightly = []
open-metrics = [
    "ant-networking/open-metrics",
    "prometheus-client",
]
otlp = ["ant-logging/otlp"]

[lints.clippy]
clone_on_ref_ptr = "warn"
unicode_not_nfc = "warn"
uninlined_format_args = "warn"
unused_async = "warn"
unwrap_used = "warn"

[lints.rust]
arithmetic_overflow = "forbid"
mutable_transmutes = "forbid"
no_mangle_const_items = "forbid"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unknown_crate_types = "forbid"
unsafe_code = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
