Macro icu_provider::export::make_exportable_provider
source · macro_rules! make_exportable_provider { ($provider:ty, [ $($(#[$cfg:meta])? $struct_m:ty),+, ]) => { ... }; }
Expand description
This macro can be used on a data provider to allow it to be exported by ExportDriver
.
Data generation ‘compiles’ data by using this data provider (which usually translates data from
different sources and doesn’t have to be efficient) to generate data structs, and then writing
them to an efficient format like BlobDataProvider
or BakedDataProvider
. The requirements
for make_exportable_provider
are:
- The data struct has to implement
serde::Serialize
and [databake::Bake
] - The provider needs to implement
IterableDataProvider
for all specifiedDataMarker
s. This allows the generating code to know whichDataIdentifierCow
s to export.