-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
80 lines (71 loc) · 1.75 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
76
77
78
79
80
[package]
name = "semantic-search"
version = "0.0.1"
edition = "2021"
license = "Apache-2.0"
authors = ["kozistr <kozistr@gmail.com>"]
description = "naive semantic search demo with gRPC server in Rust"
homepage = "https://github.com/kozistr/semantic-search-rs"
readme = "README.md"
repository = "https://github.com/kozistr/semantic-search-rs"
categories = ["search", "retrival", "server"]
keywords = ["semantic-search", "nlp", "bert", "gRPC", "vector-search", "embedding"]
[[bin]]
name = "main"
path = "src/main.rs"
[[bin]]
name = "embedding"
path = "src/embeddings.rs"
[[bin]]
name = "client"
path = "src/client.rs"
[[bin]]
name = "server"
path = "src/server.rs"
[dependencies]
serde = { version = "^1.0.188", features = ["derive"] }
rust-bert = "^0.21.0"
mimalloc = { version = "^0.1.38", default-features = false }
tokio = { version = "^1.32.0", features = ["macros", "rt-multi-thread"] }
tonic = "^0.9.2"
prost = "^0.11.9"
anyhow = "^1.0.75"
bincode = "^1.3.3"
parking_lot = "^0.12.1"
rayon = "^1.7.0"
num-traits = "^0.2.16"
hashbrown = { version = "^0.14.0", features = ["rayon", "inline-more"] }
dashmap = { version = "^5.5.1", features = ["rayon", "inline"] }
skiplist = "^0.5.1"
lazy_static = "^1.4.0"
mmap-rs = "^0.6.0"
log = "*"
rand = "^0.8.5"
env_logger = "*"
packed_simd = "^0.3.9"
indicatif = { version = "^0.17.6", optional = true }
csv = "^1.2.2"
[build-dependencies]
tonic-build = "^0.9.2"
[profile.dev]
incremental = true
opt-level = 0
codegen-units = 4
lto = false
panic = "unwind"
debug = true
debug-assertions = true
overflow-checks = false
rpath = false
[profile.release]
incremental = true
opt-level = 3
codegen-units = 1
lto = "fat"
panic = "abort"
debug = false
debug-assertions = false
overflow-checks = false
rpath = false
[features]
progress = ["indicatif"]