-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
36 lines (32 loc) · 1.14 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
[package]
name = "trend-grid"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "tgs"
path = "src/tgs.rs"
[dependencies]
anyhow = "1" # 错误处理
thiserror = "1" # 错误定义和处理
lazy_static = "1.4"
async-trait = "0.1" # 异步 async trait
serde = { version = "1", features = ["derive"] } # 序列化/反序列化
serde_json = "1"
serde_qs = "0.8"
chrono = { version = "0.4", features = ["serde"] }
reqwest = { version = "0.11", features = ["blocking", "json"] }
tokio = { version = "1", features = ["full"] } # 异步网络库
tokio-stream = { version = "0.1", features = ["sync"] } # 处理 stream
tokio-util = { version = "0.7", features = ["compat"] } # tokio 和 futures 的兼容性库
toml = "0.5" # toml 支持
ring = "0.16"
hex = "0.4"
tracing = "0.1" # 日志处理
tracing-appender = "0.2" # 文件日志
tracing-subscriber = { version = "0.3", features = ["json", "env-filter"] } # 日志处理
tungstenite = "0.17" #WebSocket
[dev-dependencies]
rand = "0.8" # 随机数处理
tempfile = "3" # 处理临时目录和临时文件
[workspace]