zlayer-consensus 0.11.13

Shared Raft consensus library built on openraft 0.9 for ZLayer and Zatabase
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.85"
name = "zlayer-consensus"
version = "0.11.13"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared Raft consensus library built on openraft 0.9 for ZLayer and Zatabase"
readme = "README.md"
keywords = [
    "raft",
    "consensus",
    "distributed",
    "openraft",
]
categories = [
    "concurrency",
    "network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/BlackLeafDigital/ZLayer"

[features]
default = ["mem-store"]
mem-store = []
redb-store = ["dep:redb"]

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

[dependencies.axum]
version = "0.8"
features = [
    "macros",
    "ws",
    "multipart",
]

[dependencies.openraft]
version = "0.9"
features = [
    "serde",
    "serde",
    "storage-v2",
]

[dependencies.postcard2]
version = "0.2.1"
features = ["alloc"]

[dependencies.redb]
version = "2.2"
optional = true

[dependencies.reqwest]
version = "0.13"
features = ["json"]

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

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.49"
features = [
    "full",
    "tracing",
]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.tokio]
version = "1.49"
features = [
    "full",
    "tracing",
    "full",
    "test-util",
]

[lints.clippy]
all = "warn"
pedantic = "warn"

[lints.rust]
dead_code = "warn"
unsafe_code = "warn"