- 移除 chrono 依赖,引入 time 库并启用相关特性 - 重构时间工具模块,使用 OffsetDateTime 替代 DateTime - 更新时间生成、转换和解析逻辑,提升代码一致性与可维护性 - 调整日期构造函数参数类型,增强类型安全 - 修正时间戳生成方式,确保东八区时间正确表示
40 lines
870 B
TOML
40 lines
870 B
TOML
[package]
|
|
name = "rs_toolbox"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["dylib", "rlib"]
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
aes = "0.8.4"
|
|
base64 = "0.22.1"
|
|
blake2b_simd = "1.0.3"
|
|
blake3 = { version = "1.8.2", features = ["serde", "digest"] }
|
|
blockhash = "1.0.0"
|
|
cbc = { version = "0.1.2", features = ["std"] }
|
|
cipher = "0.4.4"
|
|
des = "0.8.1"
|
|
hex = "0.4.3"
|
|
hmac-sha256 = "1.1.12"
|
|
hmac-sha512 = "1.1.7"
|
|
image = "0.25.8"
|
|
md-5 = "0.10.6"
|
|
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"] }
|