Cargo Features

[dependencies]
binary_sv2 = { version = "1.0.0", default-features = false, features = ["core", "with_serde", "prop_test", "with_buffer_pool"] }
default = core

The core feature is set by default whenever binary_sv2 is added without default-features = false somewhere in the dependency tree.

core default = binary_codec_sv2, derive_codec_sv2
with_serde = serde, serde_sv2

Affects binary_sv2::binary_codec_sv2

prop_test = derive_codec_sv2

Enables prop_test of binary_codec_sv2

with_buffer_pool = derive_codec_sv2

Enables with_buffer_pool of binary_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.

serde_sv2 with_serde?
serde with_serde?
binary_codec_sv2 core prop_test? with_buffer_pool?
derive_codec_sv2 core prop_test? with_buffer_pool?