Cargo Features
[dependencies]
bincode-next = { version = "3.0.0-rc.15", default-features = false, features = ["std", "alloc", "derive", "serde", "simd", "zero-copy", "static-size", "async-fiber", "tokio", "fuzzing", "full", "hw-acceleration"] }
- default full? = derive, simd, std
-
These default features are set whenever
bincode-nextis added withoutsomewhere in the dependency tree.default-features = false - std default async-fiber? full? = alloc
-
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.Affects
de_owned::decode_from_std_read,de_owned::seed_decode_from_std_read,ser::encode_into_std_write… - alloc full? std
-
Enables alloc of optional serde
serde:
Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.
Affects
deterministic::DeterministicValidator,deterministic::encode_map_deterministic,deterministic::encode_slice_deterministic,relative_ptr::AlignedBuffer,relative_ptr::ZeroBuilder,relative_ptr::ZeroCopyBuilder.build_to_target,relative_ptr::ZeroCopyBuilder.build,relative_ptr::RelativeBuilder,relative_ptr::ArrayBuilder,relative_ptr::SliceBuilder,relative_ptr::FixedString,ser::encode_to_vec,bincode-next::spec… - derive default full?
-
Enables bincode_derive-next
Affects
bincode-next::spec… - serde full?
-
Enables serde
Affects
features::serde,bincode-next::decode_serde_async,bincode-next::decode_serde_async_with_context,bincode-next::decode_serde_tokio_async,bincode-next::decode_serde_tokio_async_with_context… - simd default full? hw-acceleration?
- zero-copy full? fuzzing?
-
Enables zero-copy of optional bincode_derive-next
Affects
features::relative_ptr… - static-size full?
-
Enables static-size of optional bincode_derive-next
Affects
features::bounded,features::static_size,bincode-next::decode_from_slice_static,bincode-next::decode_from_slice_static_with_context,bincode-next::borrow_decode_from_slice_static,bincode-next::borrow_decode_from_slice_static_with_context… - async-fiber full? tokio? = std
-
Enables futures-io and libc
Affects
de::async_fiber,bincode-next::decode_async,bincode-next::decode_async_with_context,bincode-next::decode_async_tokio,bincode-next::decode_async_tokio_with_context,bincode-next::decode_serde_async,bincode-next::decode_serde_async_with_context,bincode-next::decode_serde_tokio_async,bincode-next::decode_serde_tokio_async_with_context… - tokio full? = async-fiber
-
Enables tokio
Affects
bincode-next::decode_async_tokio,bincode-next::decode_async_tokio_with_context,bincode-next::decode_serde_tokio_async,bincode-next::decode_serde_tokio_async_with_context… - fuzzing = zero-copy
-
Remember to run 'MIRIFLAGS="-Zmiri-disable-isolation" cargo +nightly miri test --all-features --no-fail-fast'
And remeber 'sudo chrt -f 99 cargo +nightly bench --bench complex' also.
And for loom: 'RUSTFLAGS="--cfg loom" cargo test --test async_fiber_loom --features "async-fiber, tokio/full" --release'Enables arbitrary
- full = alloc, async-fiber, default, derive, serde, simd, static-size, std, tokio, zero-copy
- hw-acceleration = simd