Cargo Features

[dependencies]
rkyv = { version = "0.8.8", default-features = false, features = ["std", "alloc", "unaligned", "pointer_width_32", "pointer_width_64", "bytecheck", "hashbrown-0_14", "indexmap-2", "triomphe-0_1", "uuid-1", "arrayvec-0_7", "bytes-1", "smallvec-1", "smol_str-0_2", "smol_str-0_3", "thin-vec-0_2", "tinyvec-1"] }
default = bytecheck, std

These default features are set whenever rkyv is added without default-features = false somewhere in the dependency tree.

std default = alloc

Enables std of optional bytes, optional indexmap, ptr_meta, and optional uuid

alloc indexmap-2? std triomphe-0_1?

Enables hashbrown ^0.14 and alloc of rancor and optional tinyvec

tinyvec:

Provide things that utilize the alloc crate, namely TinyVec.

Affects api::high, polyfill::dangling

little_endian big_endian aligned unaligned
pointer_width_16 pointer_width_32
pointer_width_64
bytecheck default

Enables bytecheck, bytecheck of rend and rkyv_derive

Affects rkyv::validation

hashbrown-0_14

External crate support

Enables hashbrown ^0.14

indexmap-2 = alloc

Enables indexmap

triomphe-0_1 = alloc

Enables triomphe

uuid-1

Enables uuid, uuid-1 of optional bytecheck

Features from optional dependencies

arrayvec-0_7 implicit feature

Enables arrayvec

Support for various common crates. These are primarily to get users off the ground and build some momentum.

These are NOT PLANNED to remain in rkyv for the 1.0 release. Much like serde,
these implementations should be moved into their respective crates over time.
Before adding support for another crate, please consider getting rkyv support in the crate instead.

bytes-1 implicit feature

Enables bytes

bytes:

Types and traits for working with bytes

smallvec-1 implicit feature

Enables smallvec

smallvec:

'Small vector' optimization: store up to a small number of items on the stack

smol_str-0_2 implicit feature

Enables smol_str ^0.2

smol_str:

small-string optimized string type with O(1) clone

smol_str-0_3 implicit feature

Enables smol_str

thin-vec-0_2 implicit feature

Enables thin-vec

thin-vec:

A vec that takes up less space on the stack

tinyvec-1 implicit feature

Enables tinyvec

tinyvec:

tinyvec provides 100% safe vec-like data structures