linera-chain 0.15.21

Persistent data and the corresponding logics used by the Linera protocol for chains of blocks, certificates, and cross-chain messaging.
Documentation
# 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 = "linera-chain"
version = "0.15.21"
authors = ["Linera <contact@linera.io>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Persistent data and the corresponding logics used by the Linera protocol for chains of blocks, certificates, and cross-chain messaging."
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-chain/latest/linera_chain/"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/linera-io/linera-protocol"

[package.metadata.cargo-machete]
ignored = [
    "async-trait",
    "serde_bytes",
]

[features]
metrics = [
    "prometheus",
    "linera-views/metrics",
    "linera-execution/metrics",
]
test = [
    "dep:anyhow",
    "dep:axum",
    "tokio/macros",
    "linera-base/test",
    "linera-execution/test",
]
web = [
    "linera-base/web",
    "linera-views/web",
    "linera-execution/web",
]

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

[dependencies.allocative]
version = "0.3.4"

[dependencies.anyhow]
version = "1.0.80"
optional = true

[dependencies.async-graphql]
version = "=7.0.17"
features = ["raw_value"]

[dependencies.axum]
version = "0.8.4"
optional = true

[dependencies.custom_debug_derive]
version = "0.6.1"

[dependencies.futures]
version = "0.3.30"

[dependencies.linera-base]
version = "0.15.21"

[dependencies.linera-execution]
version = "0.15.21"
default-features = false

[dependencies.linera-views]
version = "0.15.21"
default-features = false

[dependencies.prometheus]
version = "0.13.3"
optional = true

[dependencies.rand_chacha]
version = "0.3.1"
default-features = false

[dependencies.rand_distr]
version = "0.4.3"
features = [
    "alloc",
    "serde1",
]
default-features = false

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

[dependencies.serde_bytes]
version = "0.11.14"

[dependencies.serde_json]
version = "1.0.114"

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

[dependencies.thiserror]
version = "1.0.65"

[dependencies.tokio]
version = "1.36.0"

[dependencies.tracing]
version = "0.1.40"
features = ["release_max_level_trace"]

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

[dev-dependencies.assert_matches]
version = "1.5.0"

[dev-dependencies.bcs]
version = "0.1.6"

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.test-case]
version = "3.3.1"

[build-dependencies.cfg_aliases]
version = "0.2.1"

[lints.clippy]
checked_conversions = "deny"
doc_link_with_quotes = "deny"
filter_map_next = "deny"
flat_map_option = "deny"
from_iter_instead_of_collect = "deny"
inefficient_to_string = "deny"
iter_filter_is_some = "deny"
iter_not_returning_iterator = "deny"
large_futures = "deny"
large_stack_arrays = "deny"
large_types_passed_by_value = "deny"
let_underscore_must_use = "deny"
let_underscore_untyped = "deny"
macro_use_imports = "deny"
manual_instant_elapsed = "deny"
manual_is_power_of_two = "deny"
manual_is_variant_and = "deny"
map_flatten = "deny"
map_unwrap_or = "deny"
mismatching_type_param_order = "deny"
naive_bytecount = "deny"
needless_collect = "deny"
non_std_lazy_statics = "deny"
or_fun_call = "deny"
range_minus_one = "deny"
range_plus_one = "deny"
ref_option_ref = "deny"
str_split_at_newline = "deny"
uninlined_format_args = "deny"
unnecessary_wraps = "deny"
used_underscore_binding = "deny"