-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
75 lines (59 loc) · 1.9 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[package]
name = "hoyoverse-api"
version = "0.1.0"
edition = "2021"
license = "AGPL-3.0"
default-run = "hoyoverse-api"
[dependencies]
# Async Runtime
tokio = { version = "1.41.1", features = ["full"] }
tokio-stream = { version = "0.1.16", features = ["sync"] }
futures-util = "0.3.31"
# Web Framework and HTTP
axum = { version = "0.7.9", features = ["macros"] }
tower-http = { version = "0.6.2", features = ["trace", "cors", "request-id", "compression-br", "compression-deflate", "compression-gzip", "compression-zstd"] }
tower = "0.5.1"
hyper = { version = "1.5.0", features = ["full"] }
http-body = "1.0.1"
# Database
mongodb = { version = "3.1.0", features = ["snappy-compression", "zlib-compression", "zstd-compression"] }
bson = { version = "2.13.0", features = ["chrono-0_4"] }
fred = { version = "9.4.0", features = ["enable-rustls", "metrics", "sentinel-client", "replicas", "i-scripts"] }
# Serialization
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133"
serde_repr = "0.1.19"
# HTTP Client
reqwest = { version = "0.12.9", features = ["json", "rustls-tls", "cookies"], default-features = false }
# Error Handling
thiserror = "2.0.3"
anyhow = "1.0.93"
# Time and Date
chrono = { version = "0.4.38", features = ["serde"] }
# Logging and Tracing
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "time"] }
time = { version = "0.3.36", features = ["formatting"] }
# Configuration
config = { version = "0.14.1", features = ["yaml"] }
# Utilities
async-trait = "0.1.83"
bytes = "1.8.0"
regex = "1.11.1"
uuid = { version = "1.11.0", features = ["v4"] }
once_cell = "1.20.2"
# HTML Parsing
scraper = "0.21.0"
# Cron Scheduler
tokio-cron-scheduler = "0.13.0"
# MD5 and Random
md-5 = "0.10.6"
rand = "0.8.5"
[dev-dependencies]
tracing-test = "0.2.5"
[[bin]]
name = "hoyoverse-api"
path = "src/main.rs"
[[bin]]
name = "validate-codes"
path = "scripts/validate_codes.rs"