Skip to content

Commit

Permalink
Removing baked crate (#1900)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian authored May 18, 2022
1 parent c351282 commit 1459779
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 369 deletions.
10 changes: 1 addition & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions provider/testdata/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ denylist = ["bench"]
icu_provider = { version = "0.6", path = "../core" }
icu_provider_blob = { version = "0.6", path = "../blob", optional = true }
icu_provider_fs = { version = "0.6", path = "../fs", optional = true }
baked = { path = "./data/baked", optional = true }

# bin feature
clap = { version = "2.33", optional = true }
Expand All @@ -167,6 +166,9 @@ serde_json = { version = "1.0", optional = true, default-features = false, featu
displaydoc = { version = "0.2.3", default-features = false, optional = true }
writeable = { version = "0.4", path = "../../utils/writeable", optional = true }

# crabbake deps
icu_list = { version = "0.6", path = "../../components/list", optional = true }

[dev-dependencies]
icu_plurals = { version = "0.6", path = "../../components/plurals" }

Expand All @@ -184,7 +186,7 @@ metadata = [
]
fs = ["icu_provider/deserialize_json", "icu_provider_fs", "std"]
static = ["icu_provider_blob"]
baked = ["dep:baked"]
baked = ["icu_list"]
std = []
bin = [
"clap",
Expand Down
12 changes: 0 additions & 12 deletions provider/testdata/data/baked/Cargo.toml

This file was deleted.

331 changes: 0 additions & 331 deletions provider/testdata/data/baked/LICENSE

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 0 additions & 13 deletions provider/testdata/data/baked/src/lib.rs

This file was deleted.

2 changes: 1 addition & 1 deletion provider/testdata/src/bin/datagen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn main() {
));

let mod_out = icu_datagen::Out::Module {
mod_directory: paths::data_root().join("baked/src/data"),
mod_directory: paths::data_root().join("baked"),
pretty: true,
insert_feature_gates: false,
};
Expand Down
6 changes: 6 additions & 0 deletions provider/testdata/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ pub fn get_smaller_postcard_provider() -> icu_provider_blob::StaticDataProvider
.unwrap()
}

#[cfg(feature = "baked")]
mod baked {
#![allow(clippy::unwrap_used, clippy::exhaustive_structs)]
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/data/baked/mod.rs"));
}

#[cfg(feature = "baked")]
pub fn get_baked_provider() -> &'static baked::BakedDataProvider {
baked::PROVIDER
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/tidy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ script = '''
exit_on_error true
glob_pattern = set "./**/Cargo.toml"
skip_paths = set_new "provider/testdata/data/baked/Cargo.toml"
skip_paths = set_new
template = canonicalize README.tpl
Expand Down

0 comments on commit 1459779

Please sign in to comment.