Move fallback algorithms and data structs into components #3504
Labels
C-data-infra
Component: provider, datagen, fallback, adapters
S-small
Size: One afternoon (small bug fix or enhancement)
T-core
Type: Required functionality
Milestone
The fallback logic encapsulated in the
LocaleFallbacker
et al1 currently lives inicu_provider_adapters
. I propose to move it into components (i.e.icu_fallback
/icu::fallback
) for these reasons:provider/
that defines data keysLocaleFallbacker
to perform fallback (using the provider adapter is probably less efficient), and we don't want it to depend onicu_provider_adapters
The
icu_provider_adapters
crate will depend onicu_fallback
to reexport the API for semver, and to drive the fallback adapter. This works because component crates don't depend onicu_provider_adapters
.Footnotes
icu_provider_adapters::fallback::{provider::*, LocaleFallbacker, LocaleFallbackConfig, LocaleFallbackerWithConfig, LocaleFallbackIterator}
. The only thing that's staying isicu_provider_adapters::fallback::LocaleFallbackProvider
, the actual provider adapter. ↩The text was updated successfully, but these errors were encountered: