35 lines
934 B
TOML
35 lines
934 B
TOML
[package]
|
|
name = "kvstore"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
tokio = { version = "1.37", features = ["rt", "macros"] }
|
|
async-trait = "0.1"
|
|
|
|
getrandom = { version = "0.3", features = ["wasm_js"] }
|
|
wasm-bindgen = { version = "0.2.92", features = ["serde-serialize"] }
|
|
wasm-bindgen-futures = "0.4"
|
|
thiserror = "1"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
sled = { version = "0.34" }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
tempfile = "3"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
getrandom = { version = "0.3", features = ["wasm_js"] }
|
|
getrandom_02 = { package = "getrandom", version = "0.2.16", features = ["js"] }
|
|
idb = { version = "0.6" }
|
|
wasm-bindgen-test = "0.3"
|
|
wasm-bindgen = { version = "0.2.92", features = ["serde-serialize"] }
|
|
|
|
[features]
|
|
default = []
|
|
native = []
|