Skip to content

Commit

Permalink
Feature: Added sled store example based on rocks example
Browse files Browse the repository at this point in the history
  • Loading branch information
kus committed Aug 17, 2022
1 parent c550585 commit eae0851
Show file tree
Hide file tree
Showing 4 changed files with 786 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[workspace]
members = ["openraft", "memstore", "rocksstore"]
exclude = ["examples/raft-kv-memstore", "examples/raft-kv-rocksdb"]
members = ["openraft", "memstore", "rocksstore", "sledstore"]
exclude = ["examples/raft-kv-memstore", "examples/raft-kv-rocksdb"]
20 changes: 20 additions & 0 deletions sledstore/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "sledstore"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
sled = "0.34.7"
byteorder = "1.4.3"
serde = { version = "1.0.114", features = ["derive"] }
serde_json = "1.0.57"
openraft = { version = "0.6", path = "../openraft", features = ["serde"] }
async-std = { version = "1.12.0", features = ["attributes", "tokio1"] }
tracing = "0.1.29"
tracing-futures = "0.2.4"

[dev-dependencies]
tempdir = "*"
async-trait = "*"

0 comments on commit eae0851

Please sign in to comment.