mirror of
https://github.com/jwinterm/mwixnet.git
synced 2026-10-26 00:48:31 +01:00
Fixes mwixnet#32 (no longer builds on current Rust). The grin node deps move to the 5.4.0 release crates; grin-wallet points at jwinterm/grin-wallet contracts work pinned by revision. Drops unused grin_servers/chain/p2p from the main build (grin_servers isn't published). - Cargo.toml: grin_* -> 5.4.0; grin_wallet_* -> contracts fork (rev-pinned). - secp::random_secret now takes use_test_rng; pass false at all call sites. - create_onion / ComSignature::sign take a use_test_rng bool; pass false in tests. - Test modules reference the file-level onion alias via super::grin_onion. - tests/e2e.rs (boots a real node+miner) gated behind a new `integration` feature so a default `cargo test` runs the unit suite (18 tests) without a node.
84 lines
3.3 KiB
TOML
84 lines
3.3 KiB
TOML
[package]
|
|
name = "mwixnet"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[features]
|
|
# Opt-in end-to-end test harness (tests/e2e.rs) that runs a real node + miner.
|
|
# Enabling it also requires re-adding the grin node deps (grin_chain/p2p/servers)
|
|
# from a single git source, plus a [patch.crates-io] so wallet+server+node share one grin.
|
|
integration = []
|
|
|
|
[dependencies]
|
|
arti-client = { version = "0.18.0", default-features = false, features = ["async-std", "rustls", "onion-service-client", "onion-service-service"] }
|
|
arti-hyper = "0.18.0"
|
|
async-std = { version = "1", features = ["tokio1"] }
|
|
async-trait = "0.1.74"
|
|
blake2 = { package = "blake2-rfc", version = "0.2" }
|
|
byteorder = "1"
|
|
bytes = "1.5.0"
|
|
chacha20 = "0.9.1"
|
|
chrono = "0.4.31"
|
|
clap = { version = "2.33", features = ["yaml"] }
|
|
ctrlc = { version = "3.1", features = ["termination"] }
|
|
curve25519-dalek = "4.1.2"
|
|
dirs = "2.0"
|
|
ed25519-dalek = "2.1.1"
|
|
function_name = "0.3.0"
|
|
futures = "0.3"
|
|
fs-mistrust = "0.7.9"
|
|
hmac = { version = "0.12.0", features = ["std"] }
|
|
hyper = "0.14.28"
|
|
hyper-tls = "0.6.0"
|
|
itertools = { version = "0.12.0" }
|
|
jsonrpc-core = "18.0.0"
|
|
jsonrpc-derive = "18.0.0"
|
|
jsonrpc-http-server = "18.0.0"
|
|
lazy_static = "1"
|
|
pbkdf2 = "0.8.0"
|
|
rand = "0.7.3"
|
|
remove_dir_all = "0.8.2"
|
|
ring = "0.16"
|
|
rpassword = "4.0"
|
|
rusqlite = { version = "0.31.0", features = ["bundled"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_derive = "1"
|
|
serde_json = "1"
|
|
sha2 = "0.10.0"
|
|
thiserror = "1.0.30"
|
|
tls-api = "0.9.0"
|
|
tls-api-native-tls = "0.9.0"
|
|
tokio = { version = "1.37.0", features = ["full"] }
|
|
toml = "0.8.8"
|
|
tor-hscrypto = "0.18.0"
|
|
tor-hsrproxy = "0.18.0"
|
|
tor-hsservice = "0.18.0"
|
|
tor-llcrypto = "0.18.0"
|
|
tor-keymgr = "0.18.0"
|
|
tor-rtcompat = "0.18.0"
|
|
x25519-dalek = "0.6.0"
|
|
log = "0.4.20"
|
|
|
|
# Grin 5.4.0 release crates (same source the grin-wallet fork links, so they unify).
|
|
# grin_servers/chain/p2p dropped: unused in src and grin_servers isn't published.
|
|
grin_secp256k1zkp = { version = "0.7.14", features = ["bullet-proof-sizing"] }
|
|
grin_api = "5.4.0"
|
|
grin_core = "5.4.0"
|
|
grin_keychain = "5.4.0"
|
|
grin_store = "5.4.0"
|
|
grin_util = "5.4.0"
|
|
# grin-wallet contracts work, pinned to a revision (not a branch) for reproducible builds.
|
|
grin_wallet_api = { git = "https://github.com/jwinterm/grin-wallet", rev = "ce779188b19e949e3837f80eeaf73c31f61e17c0" }
|
|
grin_wallet_config = { git = "https://github.com/jwinterm/grin-wallet", rev = "ce779188b19e949e3837f80eeaf73c31f61e17c0" }
|
|
grin_wallet_controller = { git = "https://github.com/jwinterm/grin-wallet", rev = "ce779188b19e949e3837f80eeaf73c31f61e17c0" }
|
|
grin_wallet_impls = { git = "https://github.com/jwinterm/grin-wallet", rev = "ce779188b19e949e3837f80eeaf73c31f61e17c0" }
|
|
grin_wallet_libwallet = { git = "https://github.com/jwinterm/grin-wallet", rev = "ce779188b19e949e3837f80eeaf73c31f61e17c0" }
|
|
grin_wallet_util = { git = "https://github.com/jwinterm/grin-wallet", rev = "ce779188b19e949e3837f80eeaf73c31f61e17c0" }
|
|
|
|
[dev-dependencies]
|
|
# Tests use the mwixnet onion test helpers (rand_onion, proof, rand_keypair, ...).
|
|
# Dev-only so they stay out of normal builds (resolver 2).
|
|
grin_wallet_libwallet = { git = "https://github.com/jwinterm/grin-wallet", rev = "ce779188b19e949e3837f80eeaf73c31f61e17c0", features = ["test-helpers"] }
|