58 lines
1.3 KiB
TOML
58 lines
1.3 KiB
TOML
[package]
|
||
name = "nac-wallet-service"
|
||
version = "1.0.0"
|
||
edition = "2021"
|
||
authors = ["NAC Wallet Working Group"]
|
||
description = "NAC原生钱包微服务 - 基于Actix-Web,封装nac-wallet-core"
|
||
|
||
[dependencies]
|
||
# Web框架
|
||
actix-web = "4"
|
||
actix-rt = "2"
|
||
|
||
# 数据库
|
||
tokio-postgres = { version = "0.7", features = ["with-serde_json-1", "with-chrono-0_4"] }
|
||
deadpool-postgres = "0.12"
|
||
|
||
# 序列化
|
||
serde = { version = "1", features = ["derive"] }
|
||
serde_json = "1"
|
||
|
||
# 异步运行时
|
||
tokio = { version = "1", features = ["full"] }
|
||
futures-util = "0.3"
|
||
|
||
# 密码学
|
||
sha3 = "0.10"
|
||
rand = "0.8"
|
||
hex = "0.4"
|
||
ed25519-dalek = { version = "2.0", features = ["rand_core"] }
|
||
bip39 = "2.0"
|
||
sha2 = "0.10"
|
||
aes-gcm = "0.10"
|
||
pbkdf2 = { version = "0.12", features = ["simple"] }
|
||
hmac = "0.12"
|
||
zeroize = { version = "1.6", features = ["derive"] }
|
||
base64 = "0.21"
|
||
|
||
# 认证
|
||
jsonwebtoken = "9"
|
||
uuid = { version = "1", features = ["v4"] }
|
||
|
||
# 日志
|
||
tracing = "0.1"
|
||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||
|
||
# 工具
|
||
thiserror = "1"
|
||
anyhow = "1"
|
||
chrono = { version = "0.4", features = ["serde"] }
|
||
dotenvy = "0.15"
|
||
validator = { version = "0.18", features = ["derive"] }
|
||
rust_decimal = { version = "1.33", features = ["tokio-pg"] }
|
||
|
||
[profile.release]
|
||
opt-level = 3
|
||
lto = true
|
||
codegen-units = 1
|