Skip to content

Commit

Permalink
Don't enable datagen networking feature when not needed (unicode-org#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc authored May 6, 2024
1 parent def81e6 commit 08202ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions provider/blob/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ zerotrie = { workspace = true, features = ["serde", "zerovec"] }
log = { workspace = true, optional = true }

[dev-dependencies]
icu_locid = { path = "../../components/locid", features = ["serde"] }
icu_datagen = { path = "../../provider/datagen", default-features = false, features = ["networking"] }
icu_locid = { path = "../../components/locid", default-features = false, features = ["serde"] }
icu_datagen = { path = "../../provider/datagen", default-features = false }
twox-hash = { workspace = true }

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions provider/fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ serde_json = { workspace = true, features = ["std"], optional = true }

[dev-dependencies]
icu_benchmark_macros = { path = "../../tools/benchmark/macros" }
icu_locid = { path = "../../components/locid", features = ["serde"] }
icu_provider = { path = "../../provider/core", features = ["deserialize_json", "deserialize_bincode_1", "deserialize_postcard_1", "datagen"] }
icu_datagen = { path = "../../provider/datagen", features = ["networking"] }
icu_locid = { path = "../../components/locid", default-features = false, features = ["serde"] }
icu_provider = { path = "../../provider/core", default-features = false, features = ["deserialize_json", "deserialize_bincode_1", "deserialize_postcard_1", "datagen"] }
icu_datagen = { path = "../../provider/datagen", default-features = false }
writeable = { path = "../../utils/writeable" }

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
Expand Down
5 changes: 3 additions & 2 deletions provider/fs/src/export/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//! ```
//! use icu_datagen::prelude::*;
//! use icu_provider_fs::export::*;
//! use icu_provider::hello_world::*;
//!
//! let demo_path = std::env::temp_dir().join("icu4x_json_demo");
//! # let _ = std::fs::remove_dir_all(&demo_path);
Expand All @@ -26,9 +27,9 @@
//!
//! // Export something
//! DatagenDriver::new()
//! .with_keys([icu_provider::hello_world::HelloWorldV1Marker::KEY])
//! .with_keys([HelloWorldV1Marker::KEY])
//! .with_all_locales()
//! .export(&DatagenProvider::new_latest_tested(), exporter)
//! .export(&HelloWorldProvider, exporter)
//! .unwrap();
//! #
//! # let _ = std::fs::remove_dir_all(&demo_path);
Expand Down

0 comments on commit 08202ba

Please sign in to comment.