Cargo Features

[dependencies]
cloudburst = { version = "0.0.5", default-features = false, features = ["std", "alloc"] }
default = std

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

std default

Enables atomic and std of bitvec, std and std_rng of rand, std of bt_bencode, bytes, and gen_value and std of serde and serde_bytes

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

Affects validation::check, peer::Addr, peer::SocketAddr, peer::SocketAddrWithOptId

alloc

Enables alloc and atomic of bitvec and alloc of bt_bencode, gen_value, rand, serde, and serde_bytes

rand:

Option: "alloc" enables support for Vec and Box when not using "std"