Cargo Features
[dependencies]
ringbuf = { version = "0.4.7", default-features = false, features = ["std", "alloc", "bench", "portable-atomic"] }
- default = std
-
The
std
feature is set by default wheneverringbuf
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
-
Enables std of optional portable-atomic
portable-atomic:
Use
std
.Affects
consumer::Consumer.write_into
,producer::Producer.read_from
… - alloc std
-
Affects
alias::HeapRb
,alias::HeapProd
,alias::HeapCons
,storage::Heap
,utils::vec_to_uninit
,utils::boxed_slice_to_uninit
… - test_local bench
Features from optional dependencies
- portable-atomic implicit feature
-
Enables portable-atomic
portable-atomic:
Portable atomic types including support for 128-bit atomics, atomic float, etc