-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
70 lines (58 loc) · 1.83 KB
/
Copy pathCargo.toml
File metadata and controls
70 lines (58 loc) · 1.83 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
[package]
name = "libation-webviewer"
version = "0.1.0"
edition = "2021"
rust-version = "1.80"
description = "Small self-hosted web viewer for a Dockerized Libation audiobook library."
license = "MIT"
repository = "https://github.com/yolgie/libation-webviewer"
readme = "README.md"
publish = false
[dependencies]
# HTTP
axum = "0.8"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal", "fs"] }
tokio-util = { version = "0.7", features = ["io"] } # ReaderStream for streamed downloads
tower = "0.5"
tower-http = { version = "0.6", features = ["trace", "compression-br", "set-header"] }
# Templates
askama = "0.16"
# Static assets embedded into the binary
rust-embed = { version = "8", features = ["mime-guess"] }
mime_guess = "2"
# Persistence
rusqlite = { version = "0.40", features = ["bundled"] }
# Cover extraction
mp4ameta = "0.13"
id3 = "1"
# Image processing
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "webp"] }
fast_image_resize = { version = "6", features = ["image"] }
# Serialisation
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Auth
subtle = "2" # constant-time password compare
uuid = { version = "1", features = ["v4", "fast-rng"] }
# Errors + logging
thiserror = "2"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Misc
bytes = "1"
regex = "1"
sha2 = "0.11"
hex = "0.4"
time = { version = "0.3", features = ["formatting", "parsing", "macros"] }
[dev-dependencies]
proptest = "1"
tempfile = "3"
reqwest = { version = "0.13", features = ["json"], default-features = false, optional = false }
insta = "1"
tower = { version = "0.5", features = ["util"] } # ServiceExt::oneshot for handler tests
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = true
panic = "abort"