Skip to content

Commit

Permalink
baked
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Jan 31, 2024
1 parent f579b9b commit 3c9e038
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
10 changes: 10 additions & 0 deletions experimental/components/src/compactdecimal/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ use icu_plurals::PluralCategory;
use icu_provider::prelude::*;
use zerovec::ZeroMap2d;

#[cfg(feature = "compiled_data")]
/// Baked data
///
/// <div class="stab unstable">
/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
/// including in SemVer minor releases. In particular, the `DataProvider` implementations are only
/// guaranteed to match with this version's `*_unstable` providers. Use with caution.
/// </div>
pub use crate::provider::Baked;

/// Relative time format V1 data struct.
/// As in CLDR, this is a mapping from type (a power of ten, corresponding to
/// the magnitude of the number being formatted) and count (a plural case or an
Expand Down
10 changes: 10 additions & 0 deletions experimental/components/src/dimension/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ use icu_provider::prelude::*;
use tinystr::UnvalidatedTinyAsciiStr;
use zerovec::{VarZeroVec, ZeroMap};

#[cfg(feature = "compiled_data")]
/// Baked data
///
/// <div class="stab unstable">
/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
/// including in SemVer minor releases. In particular, the `DataProvider` implementations are only
/// guaranteed to match with this version's `*_unstable` providers. Use with caution.
/// </div>
pub use crate::provider::Baked;

/// This type contains all of the essential data for currency formatting.
///
/// <div class="stab unstable">
Expand Down
10 changes: 10 additions & 0 deletions experimental/components/src/displaynames/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ type UnvalidatedScript = UnvalidatedTinyAsciiStr<4>;
type UnvalidatedLocale = UnvalidatedStr;
type UnvalidatedVariant = UnvalidatedTinyAsciiStr<8>;

#[cfg(feature = "compiled_data")]
/// Baked data
///
/// <div class="stab unstable">
/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
/// including in SemVer minor releases. In particular, the `DataProvider` implementations are only
/// guaranteed to match with this version's `*_unstable` providers. Use with caution.
/// </div>
pub use crate::provider::Baked;

#[icu_provider::data_struct(RegionDisplayNamesV1Marker = "displaynames/regions@1")]
#[derive(Debug, PartialEq, Clone, Default)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
Expand Down
4 changes: 2 additions & 2 deletions experimental/components/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ pub mod provider {
#[cfg(feature = "datagen")]
/// The latest minimum set of keys required by this component.
pub const KEYS: &[DataKey] = &[
super::compactdecimal::provider::LongCompactDecimalFormatDataV1Marker::KEY,
super::compactdecimal::provider::ShortCompactDecimalFormatDataV1Marker::KEY,
super::dimension::provider::CurrencyEssentialsV1Marker::KEY,
super::dimension::provider::PercentEssentialsV1Marker::KEY,
super::displaynames::provider::LanguageDisplayNamesV1Marker::KEY,
Expand Down Expand Up @@ -107,7 +109,5 @@ pub mod provider {
super::relativetime::provider::ShortSecondRelativeTimeFormatDataV1Marker::KEY,
super::relativetime::provider::ShortWeekRelativeTimeFormatDataV1Marker::KEY,
super::relativetime::provider::ShortYearRelativeTimeFormatDataV1Marker::KEY,
super::compactdecimal::provider::LongCompactDecimalFormatDataV1Marker::KEY,
super::compactdecimal::provider::ShortCompactDecimalFormatDataV1Marker::KEY,
];
}
10 changes: 10 additions & 0 deletions experimental/components/src/relativetime/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ use alloc::string::ToString;
use icu_provider::prelude::*;
use zerovec::ZeroMap;

#[cfg(feature = "compiled_data")]
/// Baked data
///
/// <div class="stab unstable">
/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
/// including in SemVer minor releases. In particular, the `DataProvider` implementations are only
/// guaranteed to match with this version's `*_unstable` providers. Use with caution.
/// </div>
pub use crate::provider::Baked;

/// Relative time format V1 data struct.

#[icu_provider::data_struct(
Expand Down

0 comments on commit 3c9e038

Please sign in to comment.