Cargo Features
[dependencies]
icu_capi = { version = "2.0.0-beta1", default-features = false, features = ["any_provider", "buffer_provider", "provider_fs", "logging", "simple_logger", "default_components", "std", "calendar", "casemap", "collator", "datetime", "decimal", "experimental", "list", "locale", "normalizer", "plurals", "properties", "segmenter", "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_locale_core, 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_locale, optional icu_normalizer, optional icu_plurals, and optional icu_properties
icu_locale_core:
Mandatory ICU4X components and utils
- provider_fs = buffer_provider, std
-
Enables icu_provider_fs
- logging default simple_logger = 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
- default_components default = calendar, casemap, collator, datetime, decimal, list, locale, normalizer, plurals, properties, segmenter, timezone
-
Components
- std default logging provider_fs?
- calendar default_components
-
Enables icu_calendar
Affects
icu_capi::week
,errors::ffi.CalendarError
,errors::ffi.CalendarParseError
,icu_capi::calendar
,icu_capi::date
,icu_capi::datetime
,icu_capi::time
… - casemap default_components
-
Enables icu_casemap
Affects
icu_capi::casemap
… - collator default_components
-
Enables icu_collator
Affects
icu_capi::collator
… - datetime default_components
-
Enables icu_calendar, icu_decimal, icu_plurals, and icu_timezone, experimental of icu_datetime
Affects
icu_capi::datetime_formatter
,icu_capi::zoned_formatter
,errors::ffi.TimeZoneInvalidOffsetError
,icu_capi::timezone
,icu_capi::timezone_mapper
,errors::ffi.CalendarError
,errors::ffi.CalendarParseError
,icu_capi::calendar
,icu_capi::date
,icu_capi::datetime
,icu_capi::time
… - decimal default_components
-
Enables fixed_decimal and icu_decimal
fixed_decimal:
Optional ICU4X components and their dependent utils
Affects
errors::ffi.FixedDecimalLimitError
,icu_capi::decimal
,icu_capi::fixed_decimal
,errors::ffi.FixedDecimalParseError
… - experimental
-
Enables icu_experimental
Affects
icu_capi::displaynames
,icu_capi::units_converter
… - list default_components
-
Enables icu_list
Affects
icu_capi::list
… - locale default_components
-
Enables icu_locale
Affects
icu_capi::exemplar_chars
,icu_capi::fallbacker
,icu_capi::locale
,icu_capi::locale_directionality
… - normalizer default_components
-
Enables icu_normalizer
Affects
icu_capi::normalizer
,icu_capi::normalizer_properties
… - plurals default_components
-
Enables fixed_decimal and icu_plurals
Affects
icu_capi::pluralrules
,errors::ffi.FixedDecimalParseError
… - properties default_components
-
Enables icu_collections, icu_properties, and unicode-bidi
Affects
icu_capi::bidi
,icu_capi::collections_sets
,icu_capi::properties_enums
,icu_capi::properties_iter
,icu_capi::properties_maps
,icu_capi::properties_names
,icu_capi::properties_sets
,icu_capi::properties_unisets
,icu_capi::script
… - segmenter default_components
-
Enables icu_segmenter
Affects
icu_capi::segmenter_grapheme
,icu_capi::segmenter_line
,icu_capi::segmenter_sentence
,icu_capi::segmenter_word
… - timezone default_components
-
Enables icu_calendar and icu_timezone
Affects
errors::ffi.TimeZoneInvalidOffsetError
,icu_capi::timezone
,icu_capi::timezone_mapper
,errors::ffi.CalendarError
,errors::ffi.CalendarParseError
,icu_capi::calendar
,icu_capi::date
,icu_capi::datetime
,icu_capi::time
… - compiled_data default
-
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_locale, 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