-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
206 lines (172 loc) · 5.05 KB
/
Cargo.toml
File metadata and controls
206 lines (172 loc) · 5.05 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
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
[package]
name = "codex"
version = "1.16.0"
edition = "2024"
description = "A next-generation digital library server for comics, manga, and ebooks"
license = "AGPL-3.0-or-later"
repository = "https://github.com/AshDevFr/codex"
homepage = "https://github.com/AshDevFr/codex"
readme = "README.md"
[[bin]]
name = "codex"
path = "src/main.rs"
[features]
default = ["rar"]
rar = ["dep:unrar"]
embed-frontend = []
[workspace]
members = [".", "migration"]
[dependencies]
# CLI
clap = { version = "4", features = ["derive"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
serde_json = "1.0"
csv = "1.3"
# Configuration (config crate removed - not used, config loaded via serde_yaml)
# Archive formats
zip = "8.1"
unrar = { version = "0.5", optional = true }
# PDF parsing
lopdf = "0.39"
pdfium-render = "0.8"
# Image processing
image = { version = "0.25", features = ["avif"] }
resvg = "0.47"
jxl-oxide = "0.12"
infer = "0.19"
# Hashing
sha2 = "0.10"
md-5 = "0.10"
# Error handling
anyhow = "1.0"
thiserror = "2.0"
# XML parsing (for ComicInfo.xml)
quick-xml = { version = "0.39", features = ["serialize"] }
# Unicode normalization (for accent-insensitive search)
unicode-normalization = "0.1"
# Regular expressions (for ISBN extraction)
regex = "1.10"
# Templating (for plugin search query templates)
handlebars = "6"
# URL encoding
urlencoding = "2.1"
# File system utilities
walkdir = "2.5"
dirs = "6.0"
globset = "0.4"
# Date/time
chrono = { version = "0.4", features = ["serde"] }
chrono-tz = "0.10"
httpdate = "1.0"
# Table formatting
tabled = "0.20"
# Database
sea-orm = { version = "1.1", features = [
"sqlx-postgres",
"sqlx-sqlite",
"runtime-tokio-rustls",
"macros",
"with-chrono",
"with-uuid",
] }
sea-orm-migration = { version = "1.1", features = [
"runtime-tokio-rustls",
"sqlx-postgres",
"sqlx-sqlite",
] }
migration = { path = "migration" }
tokio = { version = "1", features = ["full"] }
uuid = { version = "1.0", features = ["v4", "serde"] }
# Web framework
axum = { version = "0.8", features = ["multipart"] }
tower = "0.5"
tower-http = { version = "0.6", features = ["trace", "cors", "catch-panic"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-appender = "0.2"
log = "0.4" # For sqlx logging level configuration
async-stream = "0.3"
futures = "0.3"
tokio-stream = "0.1"
# Authentication & Security
jsonwebtoken = { version = "10", features = ["aws_lc_rs"] }
argon2 = "0.5"
rand = "0.10"
lazy_static = "1.4"
base64 = "0.22"
openidconnect = "4"
# Encryption
aes-gcm = "0.10"
# Email
lettre = { version = "0.11", default-features = false, features = [
"tokio1",
"tokio1-rustls-tls",
"smtp-transport",
"builder",
] }
# HTTP Client (for plugin cover downloads and OAuth token exchange)
reqwest = { version = "0.13", default-features = false, features = [
"rustls",
"json",
"form",
] }
# API Documentation
utoipa = { version = "5.0", features = [
"axum_extras",
"chrono",
"uuid",
"yaml",
] }
utoipa-scalar = { version = "0.3", features = ["axum"] }
# Job Scheduling
cron = "0.13"
tokio-cron-scheduler = "0.15"
tokio-util = { version = "0.7", features = ["io"] }
# Concurrent data structures
dashmap = "6.1"
# Static file embedding for frontend
rust-embed = "8.5"
mime_guess = "2.0"
[dev-dependencies]
tempfile = "3.13"
tower = { version = "0.5", features = ["util"] }
http-body-util = "0.1"
hyper = { version = "1.0", features = ["full"] }
serial_test = "3.2"
# =============================================================================
# Development Profile - Optimized for fast incremental builds
# =============================================================================
[profile.dev]
incremental = true
debug = 1 # Reduced from default 2, still allows backtraces
[profile.dev.package."*"]
opt-level = 0 # Keep dependencies unoptimized for fast builds
# =============================================================================
# Distribution Profile - Optimized for release binaries
# =============================================================================
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"
# Config for 'dist'
[workspace.metadata.dist]
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.30.3"
# CI backends to support
ci = "github"
# The installers to generate for each app
installers = ["shell", "powershell"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
# Which actions to run on pull requests
pr-run-mode = "plan"
# Whether to install an updater program
install-updater = false
# Path that installers should place binaries in
install-path = "CARGO_HOME"
# Whether to enable GitHub Attestations
github-attestations = true
# Allow customized workflow file (we use build.yml instead of release.yml)
allow-dirty = ["ci"]