-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
55 lines (53 loc) · 1.28 KB
/
Cargo.toml
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
[package]
name = "axum-bootstrap"
version = "0.1.0"
edition = "2021"
[features]
default=[]
mysql = []
[dependencies]
tokio = { version = "1", features = ["full"] }
reqwest = { version = "0.12", default-features = false, features = [
"charset",
"rustls-tls",
"http2",
"macos-system-configuration",
"stream",
] }
# http服务器
axum = "0.8"
axum-macros = "0.5"
tower-http = { version = "0.6", features = ["cors", "timeout", "trace","compression-full"] }
# 日志和监控
log = "0.4"
flexi_logger = "0.29"
env_logger = "0.11"
prometheus-client = "0.23"
#序列化
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
# 数据库
sqlx = { version = "0.8", features = [
"mysql",
"runtime-tokio-rustls",
# "runtime-tokio-native-tls",
"chrono",
] }
sqlx-mysql = "0.8"
# tls需要
tokio-rustls = { version = "0.26", features = [
"logging",
"tls12",
], default-features = false }
socket2 = "0.5.8"
rustls-pki-types = "1.10.1"
rustls-pemfile = "2.2.0"
hyper = { version = "1", features = ["full"] }
hyper-util = { version = "0.1", features = ["tokio", "server-auto","server-graceful"] }
tower-service = "0.3"
# 其他实用库
chrono = "0.4"
futures-util = "0.3"
clap = { version = "4.5", features = ["derive"] }
pin-project-lite = "0.2"