Cargo Features
[dependencies]
gvariant = { version = "0.5.0", default-features = false, features = ["std", "alloc"] }
- default = alloc, std
-
These default features are set whenever
gvariant
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
-
memchr:
The 'std' feature permits the memchr crate to use the standard library. This permits this crate to use runtime CPU feature detection to automatically accelerate searching via vector instructions. Without the standard library,
this automatic detection is not possible.Affects
gvariant::Marker.deserialize
,gvariant::Marker.serialize
,gvariant::Marker.serialize_to_vec
… - alloc default std
-
Affects
aligned_bytes::copy_to_align
,gvariant::Marker.from_bytes
…