Cargo Features

[dependencies]
icu_segmenter = { version = "1.5.0", default-features = false, features = ["std", "serde", "datagen", "lstm", "auto", "compiled_data", "bench", "icu_locid_transform"] }
default = auto, compiled_data

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

std

Enables std of icu_collections, icu_locid, and icu_provider

serde datagen?

Enables serde, serde of zerovec and serde of icu_collections and icu_provider

icu_provider:

Enable BufferProvider and other deserialization infrastructure

datagen = serde

Enables databake, databake of icu_collections and zerovec

Affects provider::KEYS

lstm auto

Enables core_maths

auto default = lstm

Enabled try_new_auto_unstable constructors

compiled_data default

Enables icu_segmenter_data

Affects provider::Baked

bench

Features from optional dependencies

icu_locid_transform implicit feature

Enables icu_locid_transform

icu_locid_transform:

API for Unicode Language and Locale Identifiers canonicalization