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
[package]
name = "mon"
version = "0.1.1"
edition = "2024"
description = "A Rust library that adds JSON errors, extractors, HTML, static files, a relay and sessions to axum."
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["axum", "server", "session", "sqlite", "proxy"]
categories = ["web-programming::http-server"]
exclude = ["static", "migration", "*.db", "*.db-shm", "*.db-wal"]
[dependencies]
anyhow = "1"
axum = {version = "0.8", features = ["macros"]}
chrono = {version = "0.4", features = ["serde"]}
getrandom = "0.4"
reqwest = {version = "0.13", features = ["json", "stream"]}
serde = {version = "1", features = ["derive"]}
serde_json = "1"
sqlx = {version = "0.8", features = [
"runtime-tokio",
"tls-none",
"sqlite",
"derive",
"chrono",
"uuid",
]}
thiserror = "2"
tokio = {version = "1", features = ["rt-multi-thread", "macros", "net", "signal", "fs", "time"]}
tower = {version = "0.5", features = ["util"]}
tower-http = {version = "0.7", features = [
"trace",
"cors",
"timeout",
"request-id",
"compression-gzip",
"compression-br",
"catch-panic",
"fs",
"limit",
"set-header",
]}
tracing = "0.1"
tracing-appender = "0.2"
tracing-subscriber = {version = "0.3", features = ["env-filter"]}
uuid = {version = "1", features = ["v7", "serde"]}
[dev-dependencies]
futures-util = "0.3"
# デバッグ情報を持たせない。macOS の dev は情報を .o に残したままにするので、target が膨らむ
[profile.dev]
debug = false
[profile.release]
lto = "fat"
codegen-units = 1
strip = true