Cargo Features

Bumpalo has no features set by default.

[dependencies]
bumpalo = { version = "3.16.0", features = ["std", "collections", "boxed", "allocator_api", "serde", "allocator-api2"] }
std
collections

Affects bumpalo::collections

boxed

Affects bumpalo::boxed

allocator_api
serde

Enables serde

This dependency is here to allow integration with Serde, if the serde feature is enabled

Features from optional dependencies

allocator-api2 implicit feature

Enables allocator-api2

This dependency provides a version of the unstable nightly Rust Allocator trait on stable Rust. Enabling this feature means that bumpalo will implement its Allocator trait.