-
-
Notifications
You must be signed in to change notification settings - Fork 580
/
Cargo.toml
74 lines (66 loc) · 1.91 KB
/
Cargo.toml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[package]
name = "sonic-server"
version = "1.4.9"
description = "Fast, lightweight and schema-less search backend."
readme = "README.md"
license = "MPL-2.0"
edition = "2018"
homepage = "https://github.com/valeriansaliou/sonic"
repository = "https://github.com/valeriansaliou/sonic.git"
keywords = ["search", "query", "server", "index"]
categories = ["database-implementations", "web-programming"]
authors = ["Valerian Saliou <[email protected]>", "Baptiste Jamin <[email protected]>"]
[[bin]]
name = "sonic"
path = "src/main.rs"
doc = false
[dependencies]
log = "0.4"
toml = "0.8"
clap = { version = "3.2", features = ["std", "cargo"] }
lazy_static = "1.4"
serde = "1.0"
serde_derive = "1.0"
rand = "0.8"
unicode-segmentation = "1.6"
radix = "0.6"
rocksdb = { version = "0.22", features = ["zstd"] }
fst = "0.3"
fst-levenshtein = "0.3"
fst-regex = "0.3"
regex-syntax = "0.8"
twox-hash = "1.5"
byteorder = "1.4"
hashbrown = "0.14"
linked_hash_set = "0.1"
whatlang = "0.16"
regex = "1.6"
jieba-rs = { version = "0.7", optional = true }
lindera-core = { version = "0.31", optional = true }
lindera-dictionary = { version = "0.31", features = ["unidic"], optional = true }
lindera-tokenizer = { version = "0.31", features = ["unidic"], optional = true }
[target.'cfg(unix)'.dependencies]
nix = "0.18"
tikv-jemallocator = { version = "0.4", optional = true }
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["minwindef", "consoleapi"] }
[features]
default = ["allocator-jemalloc", "tokenizer-chinese"]
allocator-jemalloc = ["tikv-jemallocator"]
tokenizer-chinese = ["jieba-rs"]
tokenizer-japanese = ["lindera-core", "lindera-dictionary", "lindera-tokenizer"]
benchmark = []
[profile.dev]
opt-level = 0
debug = true
debug-assertions = true
[profile.release]
opt-level = 3
lto = true
debug = false
debug-assertions = false
strip = true
[profile.bench]
opt-level = 3
debug = false
debug-assertions = false