Cargo Features

[dependencies]
icu_normalizer = { version = "2.0.0-beta2", default-features = false, features = ["serde", "datagen", "experimental", "compiled_data", "icu_properties", "utf16_iter", "utf8_iter"] }
default = compiled_data, utf16_iter, utf8_iter

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

serde datagen?

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

icu_provider:

Enable BufferProvider and other deserialization infrastructure

datagen = icu_properties, serde

n.b. "icu_properties" + "icu_properties?/datagen" is equivalent to "icu_properties/datagen", however we specify this explicitly since "optional_dep/feature" is a footgun that leads to us often accidentally enabling features

Enables databake, databake of icu_collections, databake of zerovec, datagen of optional icu_properties

Affects provider::MARKERS

experimental
compiled_data default

Enables icu_normalizer_data, compiled_data of optional icu_properties

Affects provider::Baked

icu_properties datagen?

Enables icu_properties

utf16_iter default = write16

For dealing with UTF16 strings

Enables utf16_iter

utf8_iter default

For dealing with potentially ill-formed UTF8 strings

Enables utf8_iter

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.

write16 utf16_iter