tendermint-machine 0.3.0

An implementation of the Tendermint state machine in Rust
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"
rust-version = "1.91"
name = "tendermint-machine"
version = "0.3.0"
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An implementation of the Tendermint state machine in Rust"
readme = "README.md"
license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/coordinator/tributary-sdk/tendermint"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
alloc = ["borsh"]
default = ["std"]
std = [
    "alloc",
    "borsh/std",
    "async-channel",
    "serai-db",
]

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

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

[dependencies.async-channel]
version = "2"
optional = true
default-features = false

[dependencies.borsh]
version = "1"
features = [
    "derive",
    "de_strict_order",
]
optional = true
default-features = false

[dependencies.pin-project-lite]
version = "0.2"
default-features = false

[dependencies.serai-db]
version = "0.2"
features = [
    "std",
    "schema",
]
optional = true
default-features = false

[dev-dependencies.rand_core]
version = "0.9"
features = ["os_rng"]

[dev-dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
    "rt-multi-thread",
    "macros",
]

[lints.clippy]
alloc_instead_of_core = "warn"
as_conversions = "warn"
as_pointer_underscore = "warn"
as_underscore = "warn"
assertions_on_result_states = "warn"
blocks_in_conditions = "allow"
case_sensitive_file_extension_comparisons = "allow"
cfg_not_test = "warn"
create_dir = "warn"
dbg_macro = "warn"
default_trait_access = "allow"
doc_markdown = "allow"
explicit_deref_methods = "allow"
filetype_is_file = "warn"
float_arithmetic = "warn"
float_cmp_const = "warn"
fn_to_numeric_cast_any = "warn"
get_unwrap = "warn"
if_not_else = "allow"
if_then_some_else_none = "warn"
implicit_hasher = "allow"
incompatible_msrv = "allow"
inconsistent_struct_constructor = "allow"
items_after_statements = "allow"
items_after_test_module = "allow"
lossy_float_literal = "warn"
manual_is_multiple_of = "allow"
map_unwrap_or = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
naive_bytecount = "allow"
needless_continue = "allow"
precedence_bits = "warn"
rc_mutex = "warn"
same_name_method = "warn"
similar_names = "allow"
single_match_else = "allow"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
str_to_string = "warn"
string_slice = "warn"
struct_field_names = "allow"
suspicious_xor_used_as_pow = "warn"
too_many_lines = "allow"
unnecessary_self_imports = "warn"
unused_trait_names = "warn"
unwrap_or_default = "allow"
wildcard_enum_match_arm = "warn"
wildcard_imports = "allow"

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

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

[lints.rust]
ambiguous_negative_literals = "warn"
closure_returning_async_block = "warn"
deprecated_safe = "warn"
deref_into_dyn_supertrait = "warn"
explicit_outlives_requirements = "warn"
impl_trait_redundant_captures = "warn"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
non_ascii_idents = "warn"
redundant_lifetimes = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
unit_bindings = "warn"
unsafe_attr_outside_unsafe = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage)"]