summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/Cargo.toml1
-rw-r--r--core/runtime.rs10
2 files changed, 4 insertions, 7 deletions
diff --git a/core/Cargo.toml b/core/Cargo.toml
index d31727f8f..7e6802c76 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -13,7 +13,6 @@ repository = "https://github.com/denoland/deno"
path = "lib.rs"
[dependencies]
-align-data = "0.1"
anyhow = "1.0.38"
futures = "0.3.12"
indexmap = "1.6.1"
diff --git a/core/runtime.rs b/core/runtime.rs
index f6d0ab5a6..c7a945717 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -200,12 +200,10 @@ impl JsRuntime {
static DENO_INIT: Once = Once::new();
DENO_INIT.call_once(|| {
// Include 10MB ICU data file.
- assert!(v8::icu::set_common_data(align_data::include_aligned!(
- align_data::Align16,
- "icudtl.dat"
- ))
- .is_ok());
-
+ #[repr(C, align(16))]
+ struct ICUData([u8; 10413584]);
+ static ICU_DATA: ICUData = ICUData(*include_bytes!("icudtl.dat"));
+ v8::icu::set_common_data(&ICU_DATA.0).unwrap();
unsafe { v8_init() };
});