Cargo Features

bitvec = { version = "1.0.1", default-features = false, features = ["alloc", "atomic", "std", "testing", "serde"] }
alloc std
atomic default
default = atomic, std

Enable use of atomics and the standard library by default. no-std users will need to opt out with default-features = false.

std default = alloc

The standard library includes the allocator.


Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde implicit feature