feat(time): 替换 chrono 为 time 库以优化时间处理
- 移除 chrono 依赖,引入 time 库并启用相关特性 - 重构时间工具模块,使用 OffsetDateTime 替代 DateTime - 更新时间生成、转换和解析逻辑,提升代码一致性与可维护性 - 调整日期构造函数参数类型,增强类型安全 - 修正时间戳生成方式,确保东八区时间正确表示
This commit is contained in:
11
Cargo.toml
11
Cargo.toml
@@ -15,7 +15,6 @@ blake2b_simd = "1.0.3"
|
||||
blake3 = { version = "1.8.2", features = ["serde", "digest"] }
|
||||
blockhash = "1.0.0"
|
||||
cbc = { version = "0.1.2", features = ["std"] }
|
||||
chrono = "0.4.26"
|
||||
cipher = "0.4.4"
|
||||
des = "0.8.1"
|
||||
hex = "0.4.3"
|
||||
@@ -23,10 +22,18 @@ hmac-sha256 = "1.1.12"
|
||||
hmac-sha512 = "1.1.7"
|
||||
image = "0.25.8"
|
||||
md-5 = "0.10.6"
|
||||
once_cell = "1.21.3"
|
||||
rand = "0.8.5"
|
||||
rsa = { version = "0.9.2", features = ["sha2"] }
|
||||
sha1 = "0.10.6"
|
||||
sha2 = "0.10.9"
|
||||
thiserror = "2.0.17"
|
||||
time = { version = "0.3.44", features = [
|
||||
"formatting",
|
||||
"local-offset",
|
||||
"macros",
|
||||
"parsing",
|
||||
"rand",
|
||||
"serde",
|
||||
"serde-human-readable",
|
||||
] }
|
||||
uuid = { version = "1.18.1", features = ["v4", "fast-rng"] }
|
||||
|
||||
Reference in New Issue
Block a user