-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
81 lines (72 loc) · 2.2 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
[package]
name = "redisxlm"
version = "0.1.0"
authors = ["weedge <[email protected]>"]
edition = "2021"
publish = ["git"]
#build = "build.rs"
description = "building Redis x LM modules in Rust"
license = "MIT"
repository = "https://github.com/weedge/redisxlm"
keywords = ["redis", "lm"]
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/demo_llamacpp.rs"
name = "demo_llamacpp"
[[example]]
crate-type = ["cdylib"]
path = "rust/examples/async_thread_pool_block.rs"
name = "async_block"
[[test]]
path = "rust/tests/demo.rs"
name = "demo"
[dependencies]
redis-module = { workspace = true }
llama_cpp = { workspace = true }
futures = { workspace = true }
tokio = { workspace = true }
rayon = { workspace = true }
lazy_static = { workspace = true }
num_cpus = { workspace = true }
[dev-dependencies]
anyhow = "1"
redis = "0.25"
[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/llamacpp", "rust/utils"]
[workspace.package]
edition = "2021"
publish = ["git"]
license = "MIT"
exclude = [".gitignore", ".github/**"]
repository = "https://github.com/weedge/redisxlm"
#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
[workspace.dependencies]
num_cpus = "1.16.0"
serde = "1.0.197"
serde_json = "1.0.114"
redis-module = { version = "2.0.7", features = ["default"] }
llama_cpp = { git = "https://github.com/weedge/llama_cpp-rs", branch = "main", features = [
"native",
] }
llama_cpp_sys = { git = "https://github.com/weedge/llama_cpp-rs", branch = "main", features = [
"native",
] }
futures = "0.3.30"
tokio = { version = "1.34.0", features = ["full"] }
rayon = "1.9.0"
lazy_static = "1.4.0"