Cargo Features

[dependencies]
alkahest = { version = "0.3.0", default-features = false, features = ["alloc", "std", "derive", "inline-more", "fixed8", "fixed16", "fixed32", "fixed64", "bincoded"] }
alloc default std?

enables impls for types from alloc crate.

Affects buffer::VecBuffer, packet::write_packet_to_vec, serialize::serialize_to_vec

std bincoded? = alloc
derive = alkahest-proc
inline-more default
fixed8

TODO: Control on value or type level? Keep features for defaults? sets size of FixedUsize and FixedIsize to 8 bits.

Affects size::FixedUsizeType, size::FixedIsizeType

fixed16

sets size of FixedUsize and FixedIsize to 16 bits.

Affects size::FixedUsizeType, size::FixedIsizeType

fixed32 default

sets size of FixedUsize and FixedIsize to 32 bits. Default.

Affects size::FixedUsizeType, size::FixedIsizeType

fixed64

sets size of FixedUsize and FixedIsize to 64 bits.

Affects size::FixedUsizeType, size::FixedIsizeType

default = alloc, fixed32, inline-more

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

bincoded = bincode, serde, std

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

alkahest-proc derive?
bincode bincoded?
serde bincoded?