1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. //! Implementation of engine_traits for RaftEngine //! //! This is a work-in-progress attempt to abstract all the features needed by //! TiKV to persist its data. //! //! The module structure here mirrors that in engine_traits where possible. //! //! Because there are so many similarly named types across the TiKV codebase, //! and so much "import renaming", this crate consistently explicitly names type //! that implement a trait as `RocksTraitname`, to avoid the need for import //! renaming and make it obvious what type any particular module is working with. //! //! Please read the engine_trait crate docs before hacking. #![cfg_attr(test, feature(test))] #[macro_use] extern crate tikv_util; extern crate slog_global; extern crate serde_derive; extern crate raft; mod engine; pub use engine::{RaftEngineConfig, RaftLogBatch, RaftLogEngine, RecoveryMode};