2019-08-29 14:46:54 -07:00
|
|
|
[package]
|
|
|
|
name = "zebrad"
|
|
|
|
authors = []
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
[dependencies]
|
Add a `connect` command for testing.
With `./src/zcashd -debug=net -logips=1`:
```
2019-09-19 15:24:38 Added connection to 127.0.0.1:35932 peer=1
2019-09-19 15:24:38 connection from 127.0.0.1:35932 accepted
2019-09-19 15:24:38 socket closed
2019-09-19 15:24:38 disconnecting peer=1
```
With `RUST_LOG="trace"`, `cargo run connect`:
```
Sep 19 08:24:24.530 INFO zebrad::commands::connect: version=Version { version: Version(170007), services: Services(1), timestamp: 2019-09-19T15:24:24.530059300Z, address_recv: (Services(1), V4(127.0.0.1:8233)), address_from: (Services(1), V4(127.0.0.1:9000)), nonce: Nonce(1), user_agent: "Zebra Connect", start_height: BlockHeight(0), relay: false }
Sep 19 08:24:24.530 TRACE Task::run: tokio_executor::threadpool::task: state=Running
Sep 19 08:24:24.530 DEBUG Task::run: tokio_net::driver::reactor: adding I/O source token=0
Sep 19 08:24:24.530 INFO zebrad::commands::connect: version_bytes="24e9276476657273696f6e000000000063000000cb30ab03179802000100000000000000a89d835d00000000010000000000000000000000000000000000ffff7f0000012029010000000000000000000000000000000000ffff7f000001232801000000000000000d5a6562726120436f6e6e6563740000000000"
Sep 19 08:24:24.530 TRACE Task::run: log: registering with poller
```
2019-09-11 22:30:32 -07:00
|
|
|
chrono = "0.4"
|
2019-08-29 14:46:54 -07:00
|
|
|
abscissa_core = "0.3.0"
|
|
|
|
failure = "0.1"
|
|
|
|
gumdrop = "0.6"
|
|
|
|
lazy_static = "1"
|
|
|
|
serde = { version = "1", features = ["serde_derive"] }
|
2019-09-09 13:05:42 -07:00
|
|
|
toml = "0.5"
|
2019-09-23 18:11:05 -07:00
|
|
|
tokio = "=0.2.0-alpha.5"
|
|
|
|
# Replace with git to pick up instrument derive changes, revert on release.
|
|
|
|
#tracing = "0.1"
|
|
|
|
tracing = { git = "https://github.com/tokio-rs/tracing" }
|
|
|
|
tracing-futures = { git = "https://github.com/tokio-rs/tracing", features = ["tokio-alpha"], default-features = false }
|
|
|
|
tracing-subscriber = { git = "https://github.com/tokio-rs/tracing" }
|
|
|
|
tracing-log = { git = "https://github.com/tokio-rs/tracing" }
|
2019-09-19 17:48:59 -07:00
|
|
|
# Can't use published alpha because of conflicts tracking pin-project alphas
|
|
|
|
#hyper = "=0.13.0-alpha.1"
|
|
|
|
hyper = { git = "https://github.com/hyperium/hyper" }
|
2019-09-09 13:05:42 -07:00
|
|
|
futures-core-preview = { version = "=0.3.0-alpha.18" }
|
|
|
|
futures-util-preview = { version = "=0.3.0-alpha.18" }
|
2019-08-29 14:46:54 -07:00
|
|
|
|
Add a `connect` command for testing.
With `./src/zcashd -debug=net -logips=1`:
```
2019-09-19 15:24:38 Added connection to 127.0.0.1:35932 peer=1
2019-09-19 15:24:38 connection from 127.0.0.1:35932 accepted
2019-09-19 15:24:38 socket closed
2019-09-19 15:24:38 disconnecting peer=1
```
With `RUST_LOG="trace"`, `cargo run connect`:
```
Sep 19 08:24:24.530 INFO zebrad::commands::connect: version=Version { version: Version(170007), services: Services(1), timestamp: 2019-09-19T15:24:24.530059300Z, address_recv: (Services(1), V4(127.0.0.1:8233)), address_from: (Services(1), V4(127.0.0.1:9000)), nonce: Nonce(1), user_agent: "Zebra Connect", start_height: BlockHeight(0), relay: false }
Sep 19 08:24:24.530 TRACE Task::run: tokio_executor::threadpool::task: state=Running
Sep 19 08:24:24.530 DEBUG Task::run: tokio_net::driver::reactor: adding I/O source token=0
Sep 19 08:24:24.530 INFO zebrad::commands::connect: version_bytes="24e9276476657273696f6e000000000063000000cb30ab03179802000100000000000000a89d835d00000000010000000000000000000000000000000000ffff7f0000012029010000000000000000000000000000000000ffff7f000001232801000000000000000d5a6562726120436f6e6e6563740000000000"
Sep 19 08:24:24.530 TRACE Task::run: log: registering with poller
```
2019-09-11 22:30:32 -07:00
|
|
|
zebra-chain = { path = "../zebra-chain" }
|
|
|
|
zebra-network = { path = "../zebra-network" }
|
|
|
|
|
2019-08-29 14:46:54 -07:00
|
|
|
[dev-dependencies.abscissa_core]
|
|
|
|
version = "0.3.0"
|
|
|
|
features = ["testing"]
|