2019-08-29 14:46:54 -07:00
|
|
|
[package]
|
|
|
|
name = "zebra-network"
|
2024-07-02 09:46:49 -07:00
|
|
|
version = "1.0.0-beta.38"
|
2023-06-13 01:46:01 -07:00
|
|
|
authors = ["Zcash Foundation <zebra@zfnd.org>", "Tower Maintainers <team@tower-rs.com>"]
|
|
|
|
description = "Networking code for Zebra"
|
|
|
|
# # Legal
|
|
|
|
#
|
|
|
|
# This licence is deliberately different to the rest of Zebra.
|
|
|
|
#
|
2023-06-19 11:17:39 -07:00
|
|
|
# Some code in:
|
|
|
|
# zebra-network/src/peer_set/set.rs
|
|
|
|
# zebra-network/src/peer_set/unready_service.rs
|
|
|
|
# zebra-network/src/peer_set/initialize.rs
|
|
|
|
# was modified from a 2019 version of:
|
2023-06-13 01:46:01 -07:00
|
|
|
# https://github.com/tower-rs/tower/tree/master/tower/src/balance/p2c/service.rs
|
|
|
|
license = "MIT"
|
|
|
|
repository = "https://github.com/ZcashFoundation/zebra"
|
Enforce Rust edition 2021 (#3332)
* Rust edition 2021: zebra-network, cargo fix --edition and clippy --fix
* Rust edition 2021: zebra-chain, cargo fix --edition
* Rust edition 2021: tower-batch, cargo fix --edition
* Rust edition 2021: tower-fallback, cargo fix --edition
* Rust edition 2021: zebra-client, cargo fix --edition
* Rust edition 2021: zebra-consensus, cargo fix --edition
* Rust edition 2021: zebra-rpc, cargo fix --edition
* Rust edition 2021: zebra-state, cargo fix --edition
* Rust edition 2021: zebra-state, cargo fix --edition
* Rust edition 2021: zebra-test, cargo fix --edition
* Rust edition 2021: zebra-utils, cargo fix --edition
* Rust edition 2021: zebrad, cargo fix --edition
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-01-14 04:10:18 -08:00
|
|
|
edition = "2021"
|
2019-08-29 14:46:54 -07:00
|
|
|
|
2023-06-13 01:46:01 -07:00
|
|
|
readme = "../README.md"
|
|
|
|
homepage = "https://zfnd.org/zebra/"
|
|
|
|
# crates.io is limited to 5 keywords and categories
|
|
|
|
keywords = ["zebra", "zcash"]
|
|
|
|
# Must be one of <https://crates.io/category_slugs>
|
|
|
|
categories = ["asynchronous", "cryptography::cryptocurrencies", "encoding", "network-programming"]
|
2019-08-29 14:46:54 -07:00
|
|
|
|
2022-01-24 17:46:31 -08:00
|
|
|
[features]
|
|
|
|
default = []
|
2023-04-13 01:42:17 -07:00
|
|
|
|
|
|
|
# Production features that activate extra dependencies, or extra features in dependencies
|
|
|
|
|
|
|
|
progress-bar = [
|
|
|
|
"howudoin",
|
|
|
|
]
|
|
|
|
|
2022-10-27 23:58:02 -07:00
|
|
|
# Wait until `arti-client`'s dependency `x25519-dalek v1.2.0` is updated to a higher version. (#5492)
|
|
|
|
# tor = ["arti-client", "tor-rtcompat"]
|
2023-04-13 01:42:17 -07:00
|
|
|
|
|
|
|
# Testing features that activate extra dependencies
|
2022-02-14 17:44:33 -08:00
|
|
|
proptest-impl = ["proptest", "proptest-derive", "zebra-chain/proptest-impl"]
|
2022-01-24 17:46:31 -08:00
|
|
|
|
2019-08-29 14:46:54 -07:00
|
|
|
[dependencies]
|
2024-04-16 19:20:28 -07:00
|
|
|
bitflags = "2.5.0"
|
2023-10-09 20:31:25 -07:00
|
|
|
byteorder = "1.5.0"
|
2024-04-16 19:20:28 -07:00
|
|
|
bytes = "1.6.0"
|
2024-04-19 16:23:57 -07:00
|
|
|
chrono = { version = "0.4.38", default-features = false, features = ["clock", "std"] }
|
2023-06-06 01:28:14 -07:00
|
|
|
dirs = "5.0.1"
|
2022-03-06 18:07:25 -08:00
|
|
|
hex = "0.4.3"
|
2022-06-13 23:21:24 -07:00
|
|
|
humantime-serde = "1.1.1"
|
2024-04-16 19:20:28 -07:00
|
|
|
indexmap = { version = "2.2.6", features = ["serde"] }
|
2024-05-20 12:50:59 -07:00
|
|
|
itertools = "0.13.0"
|
2021-01-29 04:36:33 -08:00
|
|
|
lazy_static = "1.4.0"
|
2024-02-14 04:24:33 -08:00
|
|
|
num-integer = "0.1.46"
|
2021-12-03 10:09:43 -08:00
|
|
|
ordered-map = "0.4.2"
|
2024-03-21 11:23:41 -07:00
|
|
|
pin-project = "1.1.5"
|
2023-06-27 08:32:30 -07:00
|
|
|
rand = "0.8.5"
|
2024-04-16 19:20:28 -07:00
|
|
|
rayon = "1.10.0"
|
|
|
|
regex = "1.10.4"
|
2024-05-29 07:09:29 -07:00
|
|
|
serde = { version = "1.0.203", features = ["serde_derive"] }
|
2024-03-21 11:23:41 -07:00
|
|
|
tempfile = "3.10.1"
|
2024-05-20 12:50:59 -07:00
|
|
|
thiserror = "1.0.61"
|
2022-03-06 18:07:25 -08:00
|
|
|
|
2024-01-01 17:26:54 -08:00
|
|
|
futures = "0.3.30"
|
2024-04-16 19:20:28 -07:00
|
|
|
tokio = { version = "1.37.0", features = ["fs", "io-util", "net", "time", "tracing", "macros", "rt-multi-thread"] }
|
|
|
|
tokio-stream = { version = "0.1.15", features = ["sync", "time"] }
|
2024-05-07 12:46:59 -07:00
|
|
|
tokio-util = { version = "0.7.11", features = ["codec"] }
|
2022-06-21 10:12:19 -07:00
|
|
|
tower = { version = "0.4.13", features = ["retry", "discover", "load", "load-shed", "timeout", "util", "buffer"] }
|
2019-10-07 15:36:16 -07:00
|
|
|
|
2024-03-21 11:23:41 -07:00
|
|
|
metrics = "0.22.3"
|
2022-03-06 18:07:25 -08:00
|
|
|
tracing-futures = "0.2.5"
|
2022-05-31 20:53:51 -07:00
|
|
|
tracing-error = { version = "0.2.0", features = ["traced-error"] }
|
2023-10-16 13:13:38 -07:00
|
|
|
tracing = "0.1.39"
|
2020-02-14 13:38:33 -08:00
|
|
|
|
2023-04-13 01:42:17 -07:00
|
|
|
# prod feature progress-bar
|
|
|
|
howudoin = { version = "0.1.2", optional = true }
|
|
|
|
|
2022-01-24 17:46:31 -08:00
|
|
|
# tor dependencies
|
2022-10-27 23:58:02 -07:00
|
|
|
# Wait until `arti-client`'s dependency `x25519-dalek v1.2.0` is updated to a higher version. (#5492)
|
|
|
|
# arti-client = { version = "0.0.2", optional = true }
|
|
|
|
# tor-rtcompat = { version = "0.0.2", optional = true }
|
2022-01-24 17:46:31 -08:00
|
|
|
|
2022-02-14 17:44:33 -08:00
|
|
|
# proptest dependencies
|
2023-11-14 17:03:57 -08:00
|
|
|
proptest = { version = "1.4.0", optional = true }
|
2023-08-29 18:32:50 -07:00
|
|
|
proptest-derive = { version = "0.4.0", optional = true }
|
2022-02-14 17:44:33 -08:00
|
|
|
|
2024-07-02 09:46:49 -07:00
|
|
|
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.38", features = ["async-error"] }
|
2020-07-21 01:41:18 -07:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-11-14 17:03:57 -08:00
|
|
|
proptest = "1.4.0"
|
2023-08-29 18:32:50 -07:00
|
|
|
proptest-derive = "0.4.0"
|
2022-02-14 17:44:33 -08:00
|
|
|
|
2022-02-14 08:00:31 -08:00
|
|
|
static_assertions = "1.1.0"
|
2024-04-16 19:20:28 -07:00
|
|
|
tokio = { version = "1.37.0", features = ["full", "tracing", "test-util"] }
|
2024-05-20 12:50:59 -07:00
|
|
|
toml = "0.8.13"
|
2020-07-15 02:15:52 -07:00
|
|
|
|
2021-05-24 08:10:07 -07:00
|
|
|
zebra-chain = { path = "../zebra-chain", features = ["proptest-impl"] }
|
2020-07-15 02:15:52 -07:00
|
|
|
zebra-test = { path = "../zebra-test/" }
|