Cargo Features
[dependencies]
icu_capi = { version = "1.5.1", default-features = false, features = ["any_provider", "buffer_provider", "provider_fs", "logging", "simple_logger", "provider_test", "wasm_default", "default_components", "std", "experimental_components", "icu_calendar", "icu_casemap", "icu_collator", "icu_datetime", "icu_decimal", "icu_list", "icu_locid_transform", "icu_normalizer", "icu_plurals", "icu_properties", "icu_segmenter", "icu_timezone", "compiled_data", "looping_panic_handler", "libc_alloc"] }
- default = compiled_data, default_components, logging, simple_logger, std
-
These default features are set whenever
icu_capi
is added without
somewhere in the dependency tree.default-features = false - any_provider
- buffer_provider provider_fs?
-
Enables serde, serde of optional icu_segmenter and optional icu_timezone and icu_provider_blob
Optional ICU4X features (not components)
and serde of icu_locid, icu_provider, icu_provider_adapters, optional icu_calendar, optional icu_casemap, optional icu_collator, optional icu_datetime, optional icu_decimal, optional icu_experimental, optional icu_list, optional icu_locid_transform, optional icu_normalizer, optional icu_plurals, and optional icu_properties
icu_locid:
Mandatory ICU4X components and utils
- provider_fs = buffer_provider, std
-
Enables icu_provider_fs
- logging default cpp_default? simple_logger wasm_default? = std
-
Enables log, log of diplomat-runtime and logging of icu_provider
icu_provider:
Enable logging of additional context of data errors
Affects
icu_capi::logging
… - simple_logger default = logging
-
Enables simple_logger ^4.0.0
- provider_test = compiled_data
-
Legacy features
- cpp_default wasm_default = logging
- default_components default = icu_calendar, icu_casemap, icu_collator, icu_datetime, icu_decimal, icu_list, icu_locid_transform, icu_normalizer, icu_plurals, icu_properties, icu_segmenter, icu_timezone
-
Components
- std default logging provider_fs?
- experimental_components
-
Enables icu_experimental
Affects
icu_capi::displaynames
,icu_capi::units_converter
… - icu_calendar default_components
-
Enables icu_calendar
Affects
icu_capi::week
,icu_capi::calendar
,icu_capi::date
,icu_capi::datetime
,icu_capi::time
… - icu_casemap default_components
-
Enables icu_casemap
Affects
icu_capi::casemap
… - icu_collator default_components
-
Enables icu_collator
Affects
icu_capi::collator
… - icu_datetime default_components
-
Enables icu_calendar, icu_datetime, icu_decimal, icu_plurals, and icu_timezone
Affects
icu_capi::datetime_formatter
,icu_capi::timezone_formatter
,icu_capi::zoned_formatter
,icu_capi::iana_bcp47_mapper
,icu_capi::timezone
,icu_capi::timezone_mapper
,icu_capi::calendar
,icu_capi::date
,icu_capi::datetime
,icu_capi::time
… - icu_decimal default_components
-
Enables fixed_decimal and icu_decimal
fixed_decimal:
Optional ICU4X components and their dependent utils
Affects
icu_capi::decimal
,icu_capi::fixed_decimal
… - icu_list default_components
-
Enables icu_list
Affects
icu_capi::list
… - icu_locid_transform default_components
-
Enables icu_locid_transform
Affects
icu_capi::fallbacker
,icu_capi::locale_directionality
,icu_capi::locid_transform
… - icu_normalizer default_components
-
Enables icu_normalizer
Affects
icu_capi::normalizer
,icu_capi::normalizer_properties
… - icu_plurals default_components
-
Enables fixed_decimal and icu_plurals
Affects
icu_capi::pluralrules
… - icu_properties default_components
-
Enables icu_collections, icu_properties, and unicode-bidi
Affects
icu_capi::bidi
,icu_capi::collections_sets
,icu_capi::properties_iter
,icu_capi::properties_maps
,icu_capi::properties_names
,icu_capi::properties_sets
,icu_capi::properties_unisets
,icu_capi::script
… - icu_segmenter default_components
-
Enables icu_segmenter
Affects
icu_capi::segmenter_grapheme
,icu_capi::segmenter_line
,icu_capi::segmenter_sentence
,icu_capi::segmenter_word
… - icu_timezone default_components
-
Enables icu_calendar and icu_timezone
Affects
icu_capi::metazone_calculator
,icu_capi::iana_bcp47_mapper
,icu_capi::timezone
,icu_capi::timezone_mapper
,icu_capi::calendar
,icu_capi::date
,icu_capi::datetime
,icu_capi::time
… - compiled_data default provider_test?
-
Enables compiled_data of optional icu_calendar, optional icu_casemap, optional icu_collator, optional icu_datetime, optional icu_decimal, optional icu_experimental, optional icu_list, optional icu_locid_transform, optional icu_normalizer, optional icu_plurals, optional icu_properties, optional icu_segmenter, and optional icu_timezone
- looping_panic_handler
-
Adds a looping panic handler (useful for no_std targets)
- libc_alloc
-
Uses malloc as the global allocator (useful for no_std targets)
Enables libc_alloc