-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
81 lines (70 loc) · 2.29 KB
/
Copy pathCargo.toml
File metadata and controls
81 lines (70 loc) · 2.29 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
[workspace]
members = [
".",
"xtask"
]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2024"
authors = ["Erwan Patrick Legrand <erwan.legrand@pm.me>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ErwanLegrand/rust-axum-server-template"
keywords = ["axum", "web-server", "https", "prometheus", "rust"]
categories = ["web-programming::http-server", "template"]
[workspace.dependencies]
# Core dependencies
thiserror = "2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tracing = "0.1"
anyhow = "1.0"
tokio = { version = "1.49", features = ["full"] }
# XTask dependencies
clap = { version = "4.5", features = ["derive"] }
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
walkdir = "2.5"
fs-err = "3.3"
duct = "1.1"
toml = "1.0"
regex = "1.12"
semver = "1.0"
chrono = { version = "0.4", features = ["serde"] }
[package]
name = "rust-axum-server-template"
version = "0.1.0"
edition = "2024"
rust-version = "1.85"
authors = ["Erwan Patrick Legrand <erwan.legrand@pm.me>"]
license = "MIT OR Apache-2.0"
description = "A production-ready Axum web server template with HTTPS and Prometheus metrics"
repository = "https://github.com/ErwanLegrand/rust-axum-server-template"
keywords = ["axum", "web-server", "https", "prometheus", "rust"]
categories = ["web-programming::http-server", "template-engine"]
[dependencies]
# Web framework
axum = { version = "0.8", features = ["macros", "tracing"] }
tower = { version = "0.5", features = ["util", "timeout", "load-shed", "limit"] }
tower-http = { version = "0.6", features = ["cors", "trace", "compression-gzip", "request-id", "util", "timeout", "limit"] }
# Async runtime
tokio = { version = "1.49", features = ["full"] }
# TLS and HTTPS
rustls = { version = "0.23", features = ["aws-lc-rs"] }
rustls-pki-types = { version = "1.14" }
tokio-rustls = "0.26"
# Configuration
config = "0.15"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
thiserror = "2.0"
chrono = { version = "0.4", features = ["serde"] }
once_cell = "1.21"
# Allocator
jemallocator = "0.5"
[dev-dependencies]
reqwest = { version = "0.13", features = ["json", "rustls"] }
tokio-test = "0.4"
tower-test = "0.4"