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 default-features = false somewhere in the dependency tree.

std default = alloc

Enables std of memchr

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