Skip to content

Commit c8ff632

Browse files
committed
remove datagen
1 parent 7e771e8 commit c8ff632

File tree

6 files changed

+300
-3137
lines changed

6 files changed

+300
-3137
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/diplomat/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ zerovec = { version = "*", path = "../../utils/zerovec", optional = true}
101101
diplomat = { git = "https://github.com/rust-diplomat/diplomat", rev = "d3010a4b88a0f37d23e3c64cf5500cedc4e8cdf0" }
102102
diplomat-runtime = { git = "https://github.com/rust-diplomat/diplomat", rev = "d3010a4b88a0f37d23e3c64cf5500cedc4e8cdf0" }
103103

104-
[build-dependencies]
105-
icu_datagen = { version = "1.0", path = "../../provider/datagen", features = ["icu_segmenter"]}
106-
107104
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
108105
# Logging is automagical in wasm, we only need this for native
109106
simple_logger = { version = "1.12", optional = true }

ffi/diplomat/build.rs

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,17 @@
22
// called LICENSE at the top level of the ICU4X source tree
33
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
44

5-
use icu_datagen::*;
6-
use std::path::PathBuf;
7-
85
fn main() {
96
if std::env::var("CARGO_FEATURE_BAKED_PROVIDER").is_ok()
107
&& std::env::var("ICU4X_FFI_BAKED_ROOT").is_err()
118
{
12-
let mod_directory = PathBuf::from(std::env::var_os("OUT_DIR").unwrap()).join("empty_bake");
9+
// Empty data generated with
10+
// cargo run -p icu_datagen --features bin,icu_segmenter -- --format mod --use-separate-crates --keys none --out empty_bake
11+
// We could also just generate it here, however that would pull in all of
12+
// datagen's dependencies, which we don't really need.
1313
println!(
14-
"cargo:rustc-env=ICU4X_FFI_BAKED_ROOT={}",
15-
mod_directory.display()
14+
"cargo:rustc-env=ICU4X_FFI_BAKED_ROOT={}/empty_bake",
15+
std::env::var("CARGO_MANIFEST_DIR").unwrap()
1616
);
17-
18-
if !mod_directory.exists() {
19-
icu_datagen::datagen(
20-
Some(&[]),
21-
&[],
22-
&SourceData::default(),
23-
vec![Out::Module {
24-
mod_directory,
25-
insert_feature_gates: false,
26-
use_separate_crates: true,
27-
overwrite: false,
28-
pretty: false,
29-
}],
30-
)
31-
.unwrap();
32-
}
3317
}
3418
}

0 commit comments

Comments
 (0)