# 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"
name = "mosaik"
version = "0.2.34"
authors = [
    "Flashbots <info@flashbots.net>",
    "Karim Agha <karim@flashbots.net>",
]
build = false
exclude = [".github/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust runtime for building self-organizing, leaderless distributed systems."
homepage = "https://github.com/flashbots/mosaik"
readme = "README.md"
license = "MIT"
repository = "https://github.com/flashbots/mosaik"
resolver = "2"

[features]
cli = [
    "clap",
    "colored",
]
default = ["cli"]

[lib]
name = "mosaik"
path = "src/lib.rs"
doctest = false

[[bin]]
name = "mosaik"
path = "src/main.rs"
required-features = ["cli"]

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.arrayvec]
version = "0.7"

[dependencies.b58]
version = "0.1"

[dependencies.backoff]
version = "0.4"
features = [
    "futures",
    "tokio",
]

[dependencies.blake3]
version = "1.8"
features = ["serde"]

[dependencies.bytes]
version = "1.10"

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

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
    "unicode",
    "wrap_help",
]
optional = true

[dependencies.colored]
version = "3.1"
optional = true

[dependencies.dashmap]
version = "6.1"

[dependencies.derive_builder]
version = "0.20.2"

[dependencies.derive_more]
version = "2.1"
features = ["full"]

[dependencies.futures]
version = "0.3.32"

[dependencies.hex]
version = "0.4"

[dependencies.humansize]
version = "2.0.0"

[dependencies.humantime]
version = "2.3"

[dependencies.im]
version = "15.1.0"
features = ["serde"]

[dependencies.iroh]
version = "0.96.1"
features = [
    "address-lookup-pkarr-dht",
    "address-lookup-mdns",
]

[dependencies.iroh-gossip]
version = "0.96.0"

[dependencies.itertools]
version = "0.14"

[dependencies.mosaik-macros]
version = "0.2.34"

[dependencies.n0-error]
version = "0.1.3"

[dependencies.parking_lot]
version = "0.12"

[dependencies.pkarr]
version = "5.0"

[dependencies.postcard]
version = "1.1.3"

[dependencies.rand]
version = "0.9.2"

[dependencies.semver]
version = "1.0"
features = ["serde"]

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

[dependencies.serde_bytes]
version = "0.11"

[dependencies.slotmap]
version = "1.1"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.50"
features = ["full"]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

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

[dev-dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
    "unicode",
    "wrap_help",
]

[dev-dependencies.ctor]
version = "0.6"

[dev-dependencies.rstest]
version = "0.26"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
future_not_send = "allow"
missing_errors_doc = "allow"
must_use_candidate = "allow"
redundant_closure_for_method_calls = "allow"
similar_names = "allow"
tabs_in_doc_comments = "allow"
unused_async = "warn"
wildcard_imports = "allow"

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
type_alias_bounds = "allow"
