-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
116 lines (105 loc) · 3.45 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[package]
name = "dialogflow"
version = "1.17.0"
edition = "2021"
homepage = "https://dialogflowchatbot.github.io/"
authors = ["dialogflowchatbot <dialogflow@yeah.net>"]
[lib]
name = "dialogflow"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# https://github.com/djkoloski/rust_serialization_benchmark
[dependencies]
# For lancedb
arrow-array = "53.2.0"
arrow-schema = "53.2.0"
# End
# artful = "0.1.1"
anyhow = "1.0"
axum = {version = "0.7", features = ["query", "tokio", "macros", "multipart"]}
bigdecimal = "0.4"
# candle-core = { git = "https://github.com/huggingface/candle.git", version = "0.5.1" }
candle = { version = "0.7", package = "candle-core", default-features = false }
# candle = { git = "https://github.com/huggingface/candle.git", package = "candle-core", default-features = false }
candle-nn = "0.7.2"
# candle-nn = { git = "https://github.com/huggingface/candle.git" }
# candle-onnx = "0.7"
# candle-transformers = { git = "https://github.com/huggingface/candle.git" }
candle-transformers = { version = "0.7" }
# candle-transformers = { version = "0.7", features = ["flash-attn"] }
# crossbeam-channel = "0.5"
frand = "0.10"
tokenizers = "0.20"
# candle_embed = "0.1"
colored = "2.1"
# dashmap = "5.5.1"
enum_dispatch = "0.3"
erased-serde = "0.4"
#fastembed = "3.6"
futures = "0.3"
futures-util = "0.3"
# hf-hub = { path = "./rslibs/hf-hub", default-features = false, features = ["tokio"] }
itoa = "1.0"
# jieba-rs = "0.6.7"
# lancedb = "0.4"
oasysdb = "0.7.3"
# once_cell = "1.20"
# ort = { version = "=2.0.0-rc.0", default-features = false }
redb = "2.1"
regex = "1.11"
reqwest = { version = "0.12", features = ["stream"] }
rkyv = {version = "0.8", features = ["aligned", "alloc", "bytecheck"]}
scru128 = "3.1"
serde = { version = "1", features = ["derive"] }
serde_json = "1.0"
scraper = "0.20"
# snmalloc-rs = "0.3.4" # 暂时不支持MUSL
# simd-json = "0.10"
# simsearch = "0.2"
# strsim = "0.10.0"
# textdistance = "1.0.2"
time = { version = "0.3", features = ["formatting"] }
tower-http = { version = "0.6", features = ["cors", "limit"] }
# typetag = "0.2"
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "rt", "rt-multi-thread", "signal", "time"] }
tokio-stream = "0.1"
# tracing-subscriber = "0.3"
# Following is for Lancedb
lzma-sys = { version = "*", features = ["static"] }
log = "0.4"
env_logger = "0.11"
lettre = { version = "0.11", features = ["tokio1", "smtp-transport", "tokio1-native-tls", "pool"]}
unicase = "2.8.0"
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio", "sqlite", "macros"] }
lopdf = "0.34.0"
docx-rs = "0.4.17"
lancedb = "0.12.0"
# triple_accel = "0.4.0"
[build-dependencies]
flate2 = "1.0"
[target.'cfg(windows)'.dependencies]
windows = {version = "0.58", features = ["Win32_Globalization","Win32_System_SystemServices"]}
# https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies
# https://doc.rust-lang.org/reference/conditional-compilation.html
[target.'cfg(target_env = "gnu")'.dependencies]
[target.'cfg(target_env = "musl")'.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
[profile.dev]
debug = 2
debug-assertions = true
overflow-checks = true
opt-level = 0
lto = false
panic = 'unwind'
rpath = false
[profile.test]
debug = 1
[profile.bench]
debug = 1
[profile.release]
debug = false
debug-assertions = false
overflow-checks = false
opt-level = 3
codegen-units = 1
lto = true
panic = 'abort'