Cargo Features

[dependencies]
network_helpers_sv2 = { version = "2.0.0", default-features = false, features = ["async_std", "with_tokio", "with_serde", "with_buffer_pool"] }
default = async-channel, binary_sv2, codec_sv2

These default features are set whenever network_helpers_sv2 is added without default-features = false somewhere in the dependency tree.

async_std = async-channel, async-std, binary_sv2, codec_sv2
with_tokio = async-channel, binary_sv2, codec_sv2, tokio
with_serde = serde

Enables with_serde of binary_sv2 and codec_sv2

with_buffer_pool

Enables with_buffer_pool of codec_sv2

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

async-std async_std?
async-channel default async_std? with_tokio?

Enables async-channel ^1.8.0

tokio with_tokio?

Affects network_helpers_sv2::noise_connection_tokio, network_helpers_sv2::plain_connection_tokio

binary_sv2 default async_std? with_serde? with_tokio?
codec_sv2 default async_std? with_buffer_pool? with_serde? with_tokio?
serde with_serde?