-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
85 lines (72 loc) · 2.15 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
81
82
83
84
85
[package]
name = "redisxann"
version = "0.1.0"
authors = ["weedge <[email protected]>"]
edition = "2021"
publish = ["git"]
#build = "build.rs"
description = "building Redis x ANN modules in Rust"
license = "MIT"
repository = "https://github.com/weedge/redisxann"
keywords = ["redis", "ann"]
categories = ["database"]
exclude = [".gitignore", ".github/**"]
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[example]]
crate-type = ["cdylib"]
path = "rust/examples/vsstest.rs"
name = "vsstest"
[[test]]
path = "rust/tests/demo.rs"
name = "demo"
[[test]]
path = "rust/tests/integration_usearch.rs"
name = "usearch"
[[test]]
path = "rust/tests/integration_hnsw.rs"
name = "hnsw"
[dependencies]
redis-module = { version = "2.0.5", features = ["default"] }
#usearch = "2.6.0"
usearch = { version = "2.6.0", path = "./deps/usearch" }
faiss = { version = "0.12.1" }
hnsw_rs = "0.2.0"
cpu-time = { version = "1.0" }
rand = { version = "0.8" }
[dev-dependencies]
anyhow = "1"
redis = "0.23"
redis-module = { version = "2.0.5", features = ["default"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[dev-dependencies.regex]
version = "1.3"
default-features = false
# Unless you have a specific reason not to, it's good sense to enable standard
# library support. It enables several optimizations and avoids spin locks. It
# also shouldn't meaningfully impact compile times or binary size.
features = ["std"]
[workspace]
members = [
"rust/usearch",
"rust/faiss",
"rust/hnsw/hnswcore",
"rust/hnsw",
"deps/usearch",
]
[workspace.dependencies]
criterion = { version = "0.5", features = ["async", "async_tokio"] }
[workspace.package]
edition = "2021"
publish = ["git"]
license = "MIT"
exclude = [".gitignore", ".github/**"]
repository = "https://github.com/weedge/redisxann"
[profile.release]
#debug = 1
#opt-level = "z" # Optimize for size.
#lto = true # Enable Link Time Optimization
#codegen-units = 1 # Reduce number of codegen units to increase optimizations.
#panic = "abort" # Abort on panic
#strip = true # Automatically strip symbols from the binary.