# 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 = "commonware-bridge"
version = "2026.5.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Send succinct consensus certificates between two networks."
homepage = "https://commonware.xyz"
documentation = "https://docs.rs/commonware-bridge"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/commonwarexyz/monorepo/tree/main/examples/bridge"

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

[[bin]]
name = "dealer"
path = "src/bin/dealer.rs"
bench = false

[[bin]]
name = "indexer"
path = "src/bin/indexer.rs"
bench = false

[[bin]]
name = "validator"
path = "src/bin/validator.rs"
bench = false

[dependencies.clap]
version = "4.5.18"

[dependencies.commonware-actor]
version = "2026.5.0"

[dependencies.commonware-codec]
version = "2026.5.0"
default-features = false

[dependencies.commonware-consensus]
version = "2026.5.0"

[dependencies.commonware-cryptography]
version = "2026.5.0"
default-features = false

[dependencies.commonware-formatting]
version = "2026.5.0"
default-features = false

[dependencies.commonware-macros]
version = "2026.5.0"
default-features = false

[dependencies.commonware-p2p]
version = "2026.5.0"

[dependencies.commonware-parallel]
version = "2026.5.0"
features = ["std"]
default-features = false

[dependencies.commonware-runtime]
version = "2026.5.0"

[dependencies.commonware-storage]
version = "2026.5.0"
features = ["std"]
default-features = false

[dependencies.commonware-stream]
version = "2026.5.0"

[dependencies.commonware-utils]
version = "2026.5.0"
default-features = false

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

[dependencies.rand_core]
version = "0.6.4"

[dependencies.tracing]
version = "0.1.41"

[dependencies.tracing-subscriber]
version = "0.3.19"
features = [
    "fmt",
    "json",
]

[dev-dependencies.commonware-math]
version = "2026.5.0"
default-features = false

[lints.clippy]
disallowed_macros = "deny"
disallowed_methods = "deny"
disallowed_types = "deny"
missing-const-for-fn = "warn"
option-if-let-else = "warn"
redundant-clone = "warn"
suspicious_op_assign_impl = "allow"
undocumented_unsafe_blocks = "deny"
unused-async = "warn"
use-self = "warn"

[lints.rust]
rust-2018-idioms = "deny"
unused-must-use = "deny"
warnings = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(full_bench)",
    "cfg(generate_conformance_tests)",
    "cfg(commonware_stability_BETA)",
    "cfg(commonware_stability_GAMMA)",
    "cfg(commonware_stability_DELTA)",
    "cfg(commonware_stability_EPSILON)",
    "cfg(commonware_stability_RESERVED)",
]
