# 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 = "unc-chain-configs"
version = "0.12.2"
authors = ["Hello Inc <hello@utnet.org>"]
publish = true
description = "This crate provides typed interfaces to the UNC Genesis and Chain Configs"
readme = "README.md"
license = "GPL-2.0-or-later"
repository = "https://github.com/utnet-org/utility"

[dependencies.anyhow]
version = "1.0.62"

[dependencies.bytesize]
version = "1.1"
features = ["serde"]

[dependencies.chrono]
version = "0.4.37"
features = ["serde"]

[dependencies.derive_more]
version = "0.99.9"

[dependencies.num-rational]
version = "0.3.1"
features = ["serde"]

[dependencies.once_cell]
version = "1.13.1"

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

[dependencies.serde_json]
version = "1.0.68"

[dependencies.sha2]
version = "0.10"

[dependencies.smart-default]
version = "0.6"

[dependencies.tracing]
version = "0.1.36"
features = ["std"]

[dependencies.unc-config-utils]
version = "0.12.2"

[dependencies.unc-crypto]
version = "0.12.2"

[dependencies.unc-o11y]
version = "0.12.2"
optional = true

[dependencies.unc-parameters]
version = "0.12.2"

[dependencies.unc-primitives]
version = "0.12.2"

[features]
default = []
metrics = ["unc-o11y"]
nightly = [
    "nightly_protocol",
    "unc-o11y/nightly",
    "unc-parameters/nightly",
    "unc-primitives/nightly",
]
nightly_protocol = [
    "unc-o11y/nightly_protocol",
    "unc-parameters/nightly_protocol",
    "unc-primitives/nightly_protocol",
]

[lints.clippy]
clone_on_copy = "deny"
derivable_impls = "deny"
len_zero = "deny"
redundant_clone = "deny"
single_char_pattern = "allow"

[lints.clippy.all]
level = "allow"
priority = -100

[lints.clippy.correctness]
level = "deny"
priority = -50

[lints.clippy.perf]
level = "deny"
priority = -50

[lints.clippy.suspicious]
level = "deny"
priority = -50

[lints.rust]
warnings = "deny"