Cargo Features

[dependencies]
musli-common = { version = "0.0.110", default-features = false, features = ["std", "alloc", "simdutf8"] }
default = alloc, std

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

std default

Enables std of musli ^0.0.110, musli-allocator ^0.0.110, and optional simdutf8

simdutf8:

enable CPU feature detection, on by default, turn off for no-std support

alloc default

Enables alloc of musli-allocator ^0.0.110

Affects str::from_utf8_owned, str::from_utf8_owned

Features from optional dependencies

simdutf8 implicit feature

Enables simdutf8

simdutf8:

SIMD-accelerated UTF-8 validation

Affects str::from_utf8_owned