57 lines
1.1 KiB
TOML
57 lines
1.1 KiB
TOML
[package]
|
||
name = "nac-cross-chain-bridge"
|
||
version = "1.0.0"
|
||
edition = "2021"
|
||
authors = ["NAC Development Team"]
|
||
description = "NAC跨链桥接模块 - 支持与以太坊、BSC等主流区块链的资产互通"
|
||
license = "MIT"
|
||
|
||
[dependencies]
|
||
nac-upgrade-framework = { path = "../nac-upgrade-framework" }
|
||
# NAC核心依赖(暂时注释,待模块实现后启用)
|
||
# nac-types = { path = "../nac-types" }
|
||
# nac-crypto = { path = "../nac-crypto" }
|
||
# nac-constitution = { path = "../protocol/nac-constitution" }
|
||
|
||
# 异步运行时
|
||
tokio = { version = "1.35", features = ["full"] }
|
||
async-trait = "0.1"
|
||
|
||
# 以太坊集成
|
||
ethers = { version = "2.0", features = ["abigen", "ws"] }
|
||
web3 = "0.19"
|
||
|
||
# 序列化
|
||
serde = { version = "1.0", features = ["derive"] }
|
||
serde_json = "1.0"
|
||
bincode = "1.3"
|
||
|
||
# 日志
|
||
log = "0.4"
|
||
env_logger = "0.11"
|
||
|
||
# 错误处理
|
||
thiserror = "1.0"
|
||
anyhow = "1.0"
|
||
|
||
# 加密
|
||
sha3 = "0.10"
|
||
hex = "0.4"
|
||
|
||
# 数据库
|
||
sled = "0.34"
|
||
|
||
# 网络
|
||
reqwest = { version = "0.11", features = ["json"] }
|
||
|
||
[dev-dependencies]
|
||
tokio-test = "0.4"
|
||
|
||
[lib]
|
||
name = "nac_cross_chain_bridge"
|
||
path = "src/lib.rs"
|
||
|
||
[[bin]]
|
||
name = "nac-bridge-relay"
|
||
path = "src/bin/relay.rs"
|