-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
181 lines (160 loc) · 5.53 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
[workspace]
resolver = "2"
members = [
# Binary crates
"crates/afrodite-backend",
# Library crates
"crates/api_client",
"crates/api_internal",
"crates/model",
"crates/model_server_data",
"crates/model_server_state",
"crates/model_chat",
"crates/model_profile",
"crates/model_media",
"crates/model_account",
"crates/config",
"crates/utils",
"crates/test_mode",
"crates/test_mode_macro",
"crates/database",
"crates/database_chat",
"crates/database_profile",
"crates/database_media",
"crates/database_account",
"crates/server",
"crates/server_common",
"crates/server_state",
"crates/server_router_chat",
"crates/server_router_profile",
"crates/server_router_media",
"crates/server_router_account",
"crates/server_api",
"crates/server_api_chat",
"crates/server_api_profile",
"crates/server_api_media",
"crates/server_api_account",
"crates/server_data",
"crates/server_data_chat",
"crates/server_data_profile",
"crates/server_data_media",
"crates/server_data_account",
"crates/server_data_all",
"crates/simple_backend",
"crates/simple_backend_image_process",
"crates/simple_backend_config",
"crates/simple_backend_utils",
"crates/simple_backend_database",
"crates/simple_backend_model",
# Manager
"crates/manager",
"crates/manager_api",
"crates/manager_config",
"crates/manager_model",
# TLS client config
"crates/tls_client_native",
"crates/tls_client_rustls",
]
[workspace.dependencies]
# Build dependencies
vergen-gitcl = { version = "1.0.5", features = ["build", "cargo", "rustc"] }
error-stack = "0.5.0"
thiserror = "2.0.11"
rand = "0.8.5"
rand_xoshiro = "0.6.0"
chrono = { version = "0.4.39", features = ["serde"] }
uuid = { version = "1.11.1", features = ["v4", "serde"] }
base64 = "0.22.1"
base16ct = "0.2.0"
nalgebra = "0.33.2"
num_cpus = "1.16.0"
nix = { version = "0.29.0", default-features = false, features = ["signal"] }
image = { version = "0.25.5", default-features = false, features = ["jpeg"] }
mozjpeg = "0.10.12"
bitflags = "2.7.0"
num_enum = "0.7.3"
sha1 = "0.10.6"
sha2 = "0.10.8"
sysinfo = { version = "0.33.1", default-features = false, features = ["system"] }
clap = { version = "4.5.26", features = ["cargo", "derive"] }
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
# For tokio-console debugging. Disabled currently.
# If you want to enable this uncomment also .cargo
# console-subscriber = "0.2.0"
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.135"
toml = "0.8.19"
toml_edit = "0.22.22"
csv = "1.3.1"
diesel = { version = "2.2.6", features = ["sqlite", "returning_clauses_for_sqlite_3_35", "chrono"] }
diesel_migrations = "2.2.0"
deadpool = { version = "0.12.1" }
futures = "0.3.31"
tokio = { version = "1.43.0", features = ["full"] }
tokio-stream = { version = "0.1.17", features = ["sync", "fs"] }
tokio-util = { version = "0.7.13", features = ["io"]}
async-trait = "0.1.85"
# tls_client_rustls and tls_client_rustls configures TLS
reqwest = { version = "0.12.12", default-features = false, features = ["json", "charset", "http2", "macos-system-configuration"] }
utoipa = { version = "5.3.1", features = ["axum_extras", "uuid", "chrono"] }
utoipa-axum = { version = "0.1.4" }
utoipa-swagger-ui = { version = "8.1.1", features = ["axum", "vendored"] }
url = { version = "2.5.4", features = ["serde"] }
http = "1.2.0"
headers = "0.4.0"
jsonwebtoken = "9.3.0"
hyper = { version = "1.5.2", features = ["full"] }
hyper-util = { version = "0.1.10", features = ["full"] }
axum = { version = "0.8.1", features = ["ws", "macros"] }
axum-extra = { version = "0.10.0", features = ["typed-header"] }
tower = "0.5.2"
tower-http = { version = "0.6.2", features = ["trace"] }
# Email sending, tls_client_rustls and tls_client_rustls configures TLS
lettre = { version = "0.11.11", default-features = false, features = ["smtp-transport", "pool", "hostname", "builder"] }
# File hosting package extracting
flate2 = "1.0.35"
tar = "0.4.43"
mime = "0.3.17"
# Server TLS
tokio-rustls = { version = "0.26.1", default-features = false, features = ["logging", "tls12", "ring"] }
rustls-pemfile = "2.2.0"
rustls-platform-verifier = "0.5.0"
# Procedural macros
syn = { version = "2.0.96", features = ["full"] }
quote = "1.0.38"
# Test mode
inventory = "0.3.17"
# tls_client_rustls and tls_client_rustls configures TLS
tokio-tungstenite = { version = "0.26.1", features = ["url"] }
pgp = "0.14.2"
bstr = "1.11.3"
async-openai = { version = "0.27.2", default-features = false }
unicode-segmentation = "1.12.0"
nsfw = { version = "0.2.0", default-features = false }
[workspace.dependencies.tokio-rustls-acme]
git = "https://github.com/jutuon/tokio-rustls-acme"
rev = "db4225a5f8c12ae2f6d77d8555a405db30a709ef"
default-features = false
features = ["rustls-tls-manual-roots"]
# Firebase cloud messaging, tls_client_rustls and tls_client_rustls configures TLS
[workspace.dependencies.fcm]
git = "https://github.com/jutuon/fcm-rust"
rev = "713e744005ccb9456f77655a2480a806e29e1b77"
default-features = false
# Face detection
[workspace.dependencies.rustface]
git = "https://github.com/jutuon/rustface"
rev = "271563b947d7906f2126e1dfaae292d900171bcb"
default-features = false
# Nude detection
[workspace.dependencies.nude]
git = "https://github.com/jutuon/nude-rs"
rev = "4cf5f66291706db20a53fac438da6566d5fc15e3"
# Make image processing faster for debug builds
[profile.dev.package.image]
opt-level = 3
# Improve build time
[profile.dev]
debug = 0
strip = "debuginfo"