-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCargo.toml
More file actions
126 lines (113 loc) · 3.9 KB
/
Copy pathCargo.toml
File metadata and controls
126 lines (113 loc) · 3.9 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
[package]
name = "liwan"
version = "1.6.0"
edition = "2024"
rust-version = "1.98"
repository = "https://github.com/explodingcamera/liwan"
license = "Apache-2.0"
publish = false
[lib]
path = "src/lib.rs"
[[bin]]
name = "liwan"
path = "src/main.rs"
[[bench]]
harness = false
name = "reports"
[dependencies]
# async/concurrency
arc-swap = "1.9"
futures-lite = { version = "2.6", default-features = false, features = ["alloc"] }
quick_cache = { version = "0.7" }
tokio = { version = "1.53", default-features = false, features = ["macros", "rt-multi-thread", "signal"] }
tokio-util = { version = "0.7", features = ["io"] }
# encoding
hex = { version = "0.4" }
md-5 = { version = "0.11.0" }
password-hash = { version = "0.6.1", features = [
"getrandom",
"rand_core",
] } # required for getrandom feature
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
tokio-tar = { package = "astral-tokio-tar", version = "0.6" }
zstd = { version = "0.13", default-features = false }
# general
ahash = "0.8"
aide = { version = "0.16.0-alpha.4", default-features = false, features = [
"axum",
"axum-extra-cookie",
"axum-extra-headers",
"axum-json",
"axum-matched-path",
"axum-query",
] }
anyhow = { version = "1.0" }
argh = { version = "0.1", default-features = false, features = ["help"] }
argon2 = { version = "0.6.0-rc.8", features = [] }
async-compression = { version = "0.4", default-features = false, features = ["gzip", "tokio"] }
blake3 = { version = "1.8" }
chrono = { version = "0.4", default-features = false, features = ["now", "serde", "std"] }
chrono-tz = "0.10"
config = { version = "0.15", default-features = false, features = ["toml"] }
nix = { version = "0.31", features = ["user"] }
rand = { version = "0.10", default-features = false, features = ["std", "thread_rng"] }
tracing = { version = "0.1", default-features = false, features = ["std"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# web
axum = { version = "0.8", default-features = false, features = [
"http1",
"json",
"matched-path",
"original-uri",
"query",
"tokio",
] }
axum-extra = { version = "0.12", default-features = false, features = ["cookie", "typed-header"] }
headers = "0.4"
http = "1.5"
ipnet = { version = "2.12", features = ["serde"] }
oauth2 = { git = "https://github.com/explodingcamera-contrib/oauth2-rs", default-features = false }
openidconnect = { git = "https://github.com/explodingcamera-contrib/openidconnect-rs", default-features = false }
reqwest = { version = "0.13", default-features = false, features = ["charset", "json", "rustls", "stream"] }
rust-embed = { version = "8.12", features = ["mime-guess"] }
schemars = { version = "1.2", features = ["chrono04", "derive"] }
tower = { version = "0.5", default-features = false }
tower_governor = { version = "0.8", default-features = false, features = ["axum"] }
tower-http = { version = "0.7", default-features = false, features = [
"compression-zstd",
"cors",
"set-header",
"timeout",
] }
ua-parser = "0.2"
url = "2.5"
# database
duckdb = { version = "1.10505", features = ["bundled", "chrono", "r2d2"] }
maxminddb = { version = "0.30", features = ["simdutf8"], optional = true }
mimalloc = { version = "0.1" }
r2d2 = { version = "0.8", default-features = false }
refinery = { version = "0.9", default-features = false }
refinery-core = { version = "0.9", default-features = false }
rusqlite = { version = "0.40", features = ["bundled", "chrono", "modern_sqlite"] }
[dev-dependencies]
axum-test = { version = "21" }
cookie = { version = "*", default-features = false }
criterion = { version = "0.8", default-features = false }
tempfile = { version = "3" }
tower = { version = "*", features = ["util"] }
[features]
default = ["geoip"]
geoip = ["dep:maxminddb"]
[profile.dev]
opt-level = 1
[profile.release]
opt-level = 3
debug = false
strip = true
lto = "thin"
panic = "abort"
[profile.profiling]
inherits = "release"
debug = true
strip = false