-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
75 lines (59 loc) · 1.65 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
75
[package]
name = "pizza-wasm"
version = "0.1.0"
authors = ["medcl <[email protected]>"]
edition = "2018"
keywords = ["pizza", "wasm", "web", "search"]
categories = ["web-programming"]
[workspace]
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["wee_alloc","load_json_objects_array","stemmers","query_string"]
jieba=[]
stemmers=[]
query_string=[]
query_dsl=[]
debug=[]
load_text_lines=[]
load_json_objects_array=[]
[dependencies]
pizza-common = { path = "../../lib/common" }
pizza-engine = { path = "../../lib/engine", default-features = false, features = ["query_string_parser"] }
pizza-stemmers = { path = "../../contrib/stemmers" }
pizza-jieba = { path = "../../contrib/jieba" }
spin = "0.9"
hashbrown = { version = "0.14",default-features = false, features = ["nightly","serde"] }
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
js-sys = "0.3"
web-sys = {version = "0.3",features = ["console"]}
cfg-if = "1.0.0"
wee_alloc = { optional = true,version = "0.4.5" }
serde = { version = "1.0.197", features = ["derive"],default-features = false }
serde_json = { version = "1.0.115",default-features = false }
faststr = "0.2.23"
[dev-dependencies]
wasm-bindgen-test = "0.3.34"
[profile.dev]
opt-level = 0
debug = true
debug-assertions = true
overflow-checks = true
lto = false
panic = "unwind"
incremental = true
[profile.release]
codegen-units = 1
#opt-level = 's'
opt-level = 'z'
strip = "symbols"
debug = false
debug-assertions = false
panic = "abort"
lto = true
[build]
target = ["wasm32-unknown-unknown"]
[target.wasm32-unknown-unknown]
rustflags = ["-C", "target-feature=+simd128"]
[package.metadata.wasm-pack.profile.release]
wasm-opt = false