-
Notifications
You must be signed in to change notification settings - Fork 23
/
Cargo.toml
58 lines (52 loc) · 1.67 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
[package]
authors = ["Matt Ickstadt <[email protected]>"]
license = "MIT/Apache-2.0"
name = "elasticlunr-rs"
version = "3.0.2"
description = "A partial port of elasticlunr.js to Rust for generating static document search indexes"
documentation = "https://docs.rs/elasticlunr-rs"
repository = "https://github.com/mattico/elasticlunr-rs"
keywords = ["search", "index", "indexing", "lunr", "elasticlunr"]
exclude = ["tests/lunr-fixture-gen/", "js/", ".github/"]
readme = "README.md"
edition = "2018"
rust-version = "1.57.0" # Some dependencies require 1.60.0 at time of writing, but older versions of those can work.
[badges]
maintenance = { status = "passively-maintained" }
[lib]
name = "elasticlunr"
[[bench]]
name = "bench"
harness = false
[dev-dependencies]
criterion = "0.4.0"
maplit = "1"
[dependencies]
regex = "1"
rust-stemmers = { version = "1.2.0", optional = true } # 1.2.0 minimum for Norwegian
serde = "1"
serde_derive = "1.0.34" # First verstion to support #[serde(flatten)]
serde_json = "1"
jieba-rs = { version = "0.6", optional = true }
lindera = { version = "0.14", optional = true, features = ["ipadic"] }
lindera-core = { version = "0.13.5", optional = true }
[features]
languages = ["ar", "da", "de", "du", "es", "fi", "fr", "hu", "it", "ja", "ko", "no", "pt", "ro", "ru", "sv", "tr", "zh"]
ar = []
da = ["rust-stemmers"]
de = ["rust-stemmers"]
du = ["rust-stemmers"]
es = ["rust-stemmers"]
fi = ["rust-stemmers"]
fr = ["rust-stemmers"]
hu = ["rust-stemmers"]
it = ["rust-stemmers"]
ja = ["lindera", "lindera-core"]
ko = []
no = ["rust-stemmers"]
pt = ["rust-stemmers"]
ro = ["rust-stemmers"]
ru = ["rust-stemmers"]
sv = ["rust-stemmers"]
tr = ["rust-stemmers"]
zh = ["jieba-rs"]