forked from Xerxes-2/clewdr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
105 lines (97 loc) · 2.89 KB
/
Cargo.toml
File metadata and controls
105 lines (97 loc) · 2.89 KB
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
[package]
name = "clewdr"
version = "0.12.23"
edition = "2024"
authors = ["Xerxes-2 <dspxue@gmail.com>", "LeenHawk <leenhawk@leenhawk.com>"]
license = "AGPL-3.0"
[lib]
path = "src/lib.rs"
[profile.release]
strip = true
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
[dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal"] }
wreq = { version = "6.0.0-rc.28", features = [
"cookies",
"json",
"multipart",
"socks",
"stream",
] }
wreq-util = "3.0.0-rc.10"
serde_json = "1"
const_format = { version = "0.2", features = ["fmt"] }
serde = { version = "1", features = ["derive"] }
colored = "3"
axum = { version = "0.8", features = ["macros"] }
regex = "1"
tracing = "0.1"
tracing-subscriber = { version = "=0.3.19", features = [
"chrono",
"env-filter",
] }
chrono = "0.4"
futures = "0.3"
thiserror = "2"
uuid = { version = "1", features = ["v4"] }
clap = { version = "4", features = ["derive"] }
base64 = "0.22"
itertools = "0.14"
async-trait = "0.1"
toml = "1"
eventsource-stream = "0.2"
tracing-appender = "0.2"
self-replace = { version = "1", optional = true }
zip = { version = "8", optional = true, default-features = false, features = [
"deflate",
] }
tempfile = { version = "3", optional = true }
axum-auth = "0.8"
tiktoken-rs = "0.9"
passwords = "3"
tower-http = { version = "0.6", features = [
"compression-zstd",
"cors",
"trace",
] }
include_dir = { version = "0.7", optional = true }
tower-serve-static = { version = "0.1", optional = true }
figment = { version = "0.10", features = ["env", "toml"] }
arc-swap = "1"
url = { version = "2", features = ["serde"] }
strum = { version = "0.27", features = ["derive"] }
moka = { version = "0.12", features = ["sync"] }
tower = "0.5"
bytes = "1"
trie-rs = "0.4"
async-stream = "0.3"
struct_iterable = "0.1"
console-subscriber = { version = "0.5", optional = true }
http = "1"
snafu = { version = "0.8", features = ["futures", "rust_1_81"] }
serde_with = { version = "3", features = ["chrono_0_4"] }
oauth2 = { version = "5", default-features = false }
ractor = "0.15"
sha2 = "0.10"
mimalloc = { version = "0.1", optional = true }
dhat = { version = "0", optional = true }
etcetera = { version = "0", optional = true }
[target.'cfg(windows)'.dependencies]
enable-ansi-support = "0.3"
[target.'cfg(target_os = "android")'.dependencies]
rustls = { version = "0.23", default-features = false, features = ["ring"] }
[target.'cfg(not(target_os = "android"))'.dependencies]
aws-lc-rs = "1"
rustls = { version = "0.23", default-features = false, features = ["aws_lc_rs"] }
[features]
default = ["portable", "external-resource"]
tokio-console = ["dep:console-subscriber", "tokio/tracing"]
portable = ["dep:zip", "dep:self-replace", "dep:tempfile"]
xdg = ["dep:etcetera"]
embed-resource = ["dep:tower-serve-static", "dep:include_dir"]
external-resource = ["tower-http/fs"]
mimalloc = ["dep:mimalloc"]
dhat-heap = ["dep:dhat"]