# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2018"
name = "network_helpers_sv2"
version = "3.0.0"
authors = ["The Stratum V2 Developers"]
description = "Networking utils for SV2 roles"
homepage = "https://stratumprotocol.org"
documentation = "https://docs.rs/network_helpers_sv2"
keywords = [
    "stratum",
    "mining",
    "bitcoin",
    "protocol",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/stratum-mining/stratum"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "with_buffer_pool",
    "sv1",
]

[dependencies.async-channel]
version = "1.8.0"
optional = true

[dependencies.async-std]
version = "1.8.0"
optional = true

[dependencies.binary_sv2]
version = "^2.0.0"
optional = true

[dependencies.codec_sv2]
version = "^2.0.0"
features = ["noise_sv2"]
optional = true

[dependencies.const_sv2]
version = "^4.0.0"

[dependencies.futures]
version = "0.3.28"

[dependencies.serde_json]
version = "1.0.138"
optional = true
default-features = false

[dependencies.sv1_api]
version = "^1.0.0"
optional = true

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-util]
version = "0.7.10"
features = ["codec"]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1"

[features]
default = [
    "async-channel",
    "binary_sv2",
    "codec_sv2",
]
sv1 = [
    "sv1_api",
    "tokio-util",
    "serde_json",
]
with_buffer_pool = ["codec_sv2/with_buffer_pool"]