# 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 = "2018" rust-version = "1.75.0" name = "raft-engine" version = "0.4.2" authors = ["The TiKV Project Developers"] description = "A persistent storage engine for Multi-Raft logs" readme = "README.md" license = "Apache-2.0" repository = "https://github.com/tikv/raft-engine" [package.metadata.docs.rs] features = ["internals"] [[example]] name = "append-compact-purge" path = "examples/append_compact_purge.rs" [[example]] name = "raft-engine-fork" path = "examples/fork.rs" [[test]] name = "failpoints" path = "tests/failpoints/mod.rs" required-features = [ "internals", "failpoints", ] [[bench]] name = "benches" path = "tests/benches/mod.rs" harness = false required-features = ["failpoints"] [dependencies.byteorder] version = "1.2" [dependencies.crc32fast] version = "1.2" [dependencies.crossbeam] version = "0.8" [dependencies.fail] version = "0.5" [dependencies.fs2] version = "0.4" [dependencies.hashbrown] version = "0.14" [dependencies.hex] version = "0.4" [dependencies.if_chain] version = "1.0" [dependencies.lazy_static] version = "1.3" [dependencies.libc] version = "0.2" [dependencies.log] version = "0.4" features = [ "max_level_trace", "release_max_level_debug", ] [dependencies.lz4-sys] version = "1.9" [dependencies.memmap2] version = "0.9" optional = true [dependencies.nix] version = "0.26" [dependencies.num-derive] version = "0.4" [dependencies.num-traits] version = "0.2" [dependencies.parking_lot] version = "0.12" [dependencies.prometheus] version = "0.13" [dependencies.prometheus-static-metric] version = "0.5" [dependencies.protobuf] version = "2" [dependencies.rayon] version = "1.5" [dependencies.rhai] version = "1.7" features = ["sync"] optional = true [dependencies.scopeguard] version = "1.1" [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_repr] version = "0.1" [dependencies.strum] version = "0.25.0" features = ["derive"] [dependencies.thiserror] version = "1.0" [dev-dependencies.criterion] version = "0.4" [dev-dependencies.ctor] version = "0.2" [dev-dependencies.env_logger] version = "0.10" [dev-dependencies.rand] version = "0.8" [dev-dependencies.rand_distr] version = "0.4" [dev-dependencies.tempfile] version = "3.6" [dev-dependencies.toml] version = "0.8" [features] default = [ "internals", "scripting", ] failpoints = ["fail/failpoints"] internals = [] nightly = ["prometheus/nightly"] nightly_group = [ "nightly", "swap", ] scripting = ["rhai"] std_fs = [] swap = [ "nightly", "memmap2", ]