2023-03-22 17:41:58 +00:00
|
|
|
[package]
|
|
|
|
name = "store"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
utils = { path = "../utils" }
|
2023-03-30 06:26:53 +00:00
|
|
|
rocksdb = { version = "0.20.1", optional = true }
|
|
|
|
foundationdb = { version = "0.7.0", optional = true }
|
2023-04-02 17:10:59 +00:00
|
|
|
rusqlite = { version = "0.29.0", features = ["bundled"], optional = true }
|
|
|
|
tokio = { version = "1.23", features = ["sync"], optional = true }
|
|
|
|
r2d2 = { version = "0.8.10", optional = true }
|
2023-03-30 06:26:53 +00:00
|
|
|
futures = { version = "0.3", optional = true }
|
2023-03-22 17:41:58 +00:00
|
|
|
rand = "0.8.5"
|
|
|
|
roaring = "0.10.1"
|
2023-03-30 06:26:53 +00:00
|
|
|
rayon = { version = "1.5.1", optional = true }
|
2023-03-22 17:41:58 +00:00
|
|
|
serde = { version = "1.0", features = ["derive"]}
|
|
|
|
ahash = { version = "0.8.0", features = ["serde"] }
|
|
|
|
bitpacking = "0.8.4"
|
|
|
|
lazy_static = "1.4"
|
|
|
|
whatlang = "0.16" # Language detection
|
|
|
|
rust-stemmers = "1.2" # Stemmers
|
|
|
|
tinysegmenter = "0.1" # Japanese tokenizer
|
|
|
|
jieba-rs = "0.6" # Chinese stemmer
|
2023-03-26 17:02:56 +00:00
|
|
|
xxhash-rust = { version = "0.8.5", features = ["xxh3"] }
|
|
|
|
farmhash = "1.1.5"
|
|
|
|
siphasher = "0.3"
|
2023-04-02 17:10:59 +00:00
|
|
|
maybe-async = "0.2"
|
2023-04-04 12:28:43 +00:00
|
|
|
parking_lot = { version = "0.12.1", optional = true }
|
|
|
|
lru-cache = { version = "0.1.2", optional = true }
|
|
|
|
blake3 = "1.3.3"
|
2023-03-26 17:02:56 +00:00
|
|
|
|
2023-03-30 06:26:53 +00:00
|
|
|
[features]
|
2023-04-04 12:28:43 +00:00
|
|
|
default = ["sqlite"]
|
2023-04-02 17:10:59 +00:00
|
|
|
rocks = ["rocksdb", "rayon", "is_sync"]
|
|
|
|
sqlite = ["rusqlite", "rayon", "r2d2", "tokio", "is_sync"]
|
|
|
|
foundation = ["foundationdb", "futures", "is_async"]
|
2023-04-04 12:28:43 +00:00
|
|
|
is_sync = ["maybe-async/is_sync", "parking_lot", "lru-cache"]
|
2023-04-02 17:10:59 +00:00
|
|
|
is_async = []
|
2023-03-30 06:26:53 +00:00
|
|
|
|
2023-03-26 17:02:56 +00:00
|
|
|
[dev-dependencies]
|
2023-03-30 06:26:53 +00:00
|
|
|
tokio = { version = "1.23", features = ["full"] }
|
2023-03-26 17:02:56 +00:00
|
|
|
csv = "1.1"
|
2023-03-30 06:26:53 +00:00
|
|
|
rayon = { version = "1.5.1" }
|
2023-03-26 17:02:56 +00:00
|
|
|
flate2 = { version = "1.0.17", features = ["zlib"], default-features = false }
|