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
andFixedIsize
to 8 bits.Affects
size::FixedUsizeType
,size::FixedIsizeType
… - fixed16
-
sets size of
FixedUsize
andFixedIsize
to 16 bits.Affects
size::FixedUsizeType
,size::FixedIsizeType
… - fixed32 default
-
sets size of
FixedUsize
andFixedIsize
to 32 bits. Default.Affects
size::FixedUsizeType
,size::FixedIsizeType
… - fixed64
-
sets size of
FixedUsize
andFixedIsize
to 64 bits.Affects
size::FixedUsizeType
,size::FixedIsizeType
… - default = alloc, fixed32, inline-more
-
These default features are set whenever
alkahest
is added without
somewhere in the dependency tree.default-features = false - 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.