[package] name = "ovr-vsdb" version = "0.34.3" authors = ["fanhui.x@gmail.com"] edition = "2021" description = "Versioned Stateful DataBase, mainly used in blockchain scene." homepage = "https://github.com/Overealityio/ovr-vsdb" repository = "https://github.com/Overealityio/ovr-vsdb" keywords = ["git", "leveldb", "rocksdb", "version", "vcs"] categories = ["database-implementations", "data-structures", "algorithms", "caching"] license = "MIT" [dependencies] ovr-ruc = "1.0.8" once_cell = "1.10.0" serde = { version = "1.0.136", features = ["derive"] } parking_lot = "0.12.0" primitive-types-0-11 = { package = "primitive-types", version = "0.11", default-features = false } primitive-types-0-10 = { package = "primitive-types", version = "0.10", default-features = false } bcs = { version = "0.1.3", optional = true } msgpack = { package = "rmp-serde", version = "1.1.0", optional = true } ovr-vsdb-derive = { version = "0.34.0", optional = true } blake3 = { version = "1.3.1", optional = true } fast-math = { version = "0.1", optional = true } rocksdb = { version = "0.18.0", default-features = false, optional = true } [target.'cfg(target_os = "linux")'.dependencies] sled = { package = "vsdbsled", version = "0.34.7-p1", features = ["io_uring"], optional = true } [target.'cfg(not(target_os = "linux"))'.dependencies] sled = { package = "vsdbsled", version = "0.34.7-p1", optional = true } [dev-dependencies] criterion = { version = "0.3.5", features = ["html_reports"]} hex = "0.4.3" rand = "0.8.5" [features] default = ["derive", "sled_engine", "msgpack_codec"] derive = ["ovr-vsdb-derive"] sled_engine = ["sled"] rocks_engine = ["rocksdb"] compress = ["sled?/compression", "rocksdb?/lz4"] bcs_codec = ["bcs"] msgpack_codec = ["msgpack"] hash= ["blake3"] merkle = ["hash", "fast-math"] [[bench]] name = "bench_main" harness = false [profile.dev] incremental = false overflow-checks = true [profile.release] codegen-units = 1 incremental = false overflow-checks = false [profile.bench] codegen-units = 1 incremental = false overflow-checks = false [[example]] name = "blockchain_state" [[example]] name = "web_server"