feat(project): init
This commit is contained in:
24
Cargo.toml
Normal file
24
Cargo.toml
Normal file
@@ -0,0 +1,24 @@
|
||||
[package]
|
||||
name = "rust_logger"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
# 异步运行时
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
# 数据库 ORM (PostgreSQL)
|
||||
sqlx = { version = "0.8", features = [
|
||||
"runtime-tokio-native-tls",
|
||||
"postgres",
|
||||
"chrono",
|
||||
] }
|
||||
# 时间处理
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
# 异步 Trait 支持
|
||||
async-trait = "0.1"
|
||||
# 全局单例支持
|
||||
once_cell = "1.19"
|
||||
# 错误处理
|
||||
anyhow = "1.0"
|
||||
# 读取 .env 文件
|
||||
dotenv = "0.15"
|
||||
Reference in New Issue
Block a user