Cargo Features
[dependencies]
ringbuf = { version = "0.5.0", default-features = false, features = ["std", "alloc", "portable-atomic", "bench"] }
- default = std
-
The
stdfeature is set by default wheneverringbufis added withoutsomewhere in the dependency tree.default-features = false - std default = alloc
-
Enables std of optional portable-atomic and optional portable-atomic-util
portable-atomic-util:
Use
std.Note:
- This implicitly enables the
allocfeature.
Affects
consumer::Consumer.write_into,producer::Producer.read_from… - This implicitly enables the
- alloc std
-
Enables alloc of optional portable-atomic-util
portable-atomic-util:
Use
alloc.Note:
- The MSRV when this feature is enabled and the
stdfeature is not enabled is Rust 1.36 thatalloccrate stabilized.
Affects
alias::HeapRb,alias::HeapProd,alias::HeapCons,storage::Heap,utils::vec_to_uninit,utils::boxed_slice_to_uninit… - The MSRV when this feature is enabled and the
- portable-atomic
-
Enables portable-atomic and portable-atomic-util
- test_local bench