mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Moving tor into swap
This commit is contained in:
parent
f7bcfa5e14
commit
17b32fed90
@ -20,13 +20,14 @@ libp2p-tokio-socks5 = "0.4"
|
||||
log = { version = "0.4", features = ["serde"] }
|
||||
monero = "0.9"
|
||||
rand = "0.7"
|
||||
reqwest = { version = "0.10", default-features = false }
|
||||
reqwest = { version = "0.10", default-features = false, features = ["socks"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_derive = "1.0"
|
||||
serde_json = "1"
|
||||
structopt = "0.3"
|
||||
time = "0.2"
|
||||
tokio = { version = "0.2", features = ["rt-threaded", "time", "macros", "sync"] }
|
||||
torut = { version = "0.1", optional = true }
|
||||
tracing = { version = "0.1", features = ["attributes"] }
|
||||
tracing-core = "0.1"
|
||||
tracing-futures = { version = "0.2", features = ["std-future", "futures-03"] }
|
||||
@ -34,4 +35,14 @@ tracing-log = "0.1"
|
||||
tracing-subscriber = { version = "0.2", default-features = false, features = ["fmt", "ansi", "env-filter"] }
|
||||
url = "2.1"
|
||||
void = "1"
|
||||
xmr-btc = { path = "../xmr-btc" }
|
||||
xmr-btc = { path = "../xmr-btc" }
|
||||
|
||||
[dev-dependencies]
|
||||
hyper = "0.13"
|
||||
port_check = "0.1"
|
||||
spectral = "0.6"
|
||||
tempfile = "3"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
tor = ["torut"]
|
||||
|
@ -5,6 +5,8 @@ pub mod alice;
|
||||
pub mod bitcoin;
|
||||
pub mod bob;
|
||||
pub mod network;
|
||||
#[cfg(feature = "tor")]
|
||||
pub mod tor;
|
||||
|
||||
pub const ONE_BTC: u64 = 100_000_000;
|
||||
|
||||
|
@ -6,6 +6,7 @@ mod tor_test {
|
||||
use reqwest::StatusCode;
|
||||
use spectral::prelude::*;
|
||||
use std::{convert::Infallible, fs};
|
||||
use swap::tor::UnauthenticatedConnection;
|
||||
use tempfile::{Builder, NamedTempFile};
|
||||
use tokio::sync::oneshot::Receiver;
|
||||
use torut::{
|
||||
@ -13,7 +14,6 @@ mod tor_test {
|
||||
utils::{run_tor, AutoKillChild},
|
||||
};
|
||||
use tracing_subscriber::util::SubscriberInitExt;
|
||||
use xmr_btc::tor::UnauthenticatedConnection;
|
||||
|
||||
async fn hello_world(
|
||||
_req: hyper::Request<hyper::Body>,
|
@ -19,13 +19,10 @@ genawaiter = "0.99.1"
|
||||
miniscript = { version = "1", features = ["serde"] }
|
||||
monero = { version = "0.9", features = ["serde_support"] }
|
||||
rand = "0.7"
|
||||
reqwest = { version = "0.10", default-features = false, features = ["socks"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
sha2 = "0.9"
|
||||
thiserror = "1"
|
||||
tokio = { version = "0.2", default-features = false, features = ["blocking", "macros", "rt-core", "time", "rt-threaded"] }
|
||||
torut = { version = "0.1", optional = true }
|
||||
tokio = { version = "0.2", default-features = false, features = ["time"] }
|
||||
tracing = "0.1"
|
||||
|
||||
[dev-dependencies]
|
||||
@ -33,18 +30,11 @@ backoff = { version = "0.2", features = ["tokio"] }
|
||||
base64 = "0.12"
|
||||
bitcoin-harness = { git = "https://github.com/coblox/bitcoin-harness-rs", rev = "7ff30a559ab57cc3aa71189e71433ef6b2a6c3a2" }
|
||||
futures = "0.3"
|
||||
hyper = "0.13"
|
||||
monero-harness = { path = "../monero-harness" }
|
||||
port_check = "0.1"
|
||||
reqwest = { version = "0.10", default-features = false }
|
||||
serde_cbor = "0.11"
|
||||
sled = "0.34"
|
||||
spectral = "0.6"
|
||||
tempfile = "3"
|
||||
testcontainers = "0.10"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.2"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
tor = ["torut"]
|
||||
|
@ -50,8 +50,6 @@ pub mod bitcoin;
|
||||
pub mod bob;
|
||||
pub mod monero;
|
||||
pub mod serde;
|
||||
#[cfg(feature = "tor")]
|
||||
pub mod tor;
|
||||
pub mod transport;
|
||||
|
||||
use async_trait::async_trait;
|
||||
|
Loading…
Reference in New Issue
Block a user