From ba87365f72414e4da175222c9a0da32b1d66febf Mon Sep 17 00:00:00 2001 From: Masato TOYOSHIMA Date: Sun, 15 Dec 2024 08:11:32 +0900 Subject: [PATCH] aarch64 windows --- Cargo.lock | 4 ++-- Cargo.toml | 4 +++- dist-workspace.toml | 1 + src/bin/dict-to-mozc.rs | 8 +++++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4d51157..75c3295 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -86,7 +86,7 @@ dependencies = [ [[package]] name = "dict-to-mozc" -version = "0.6.3" +version = "0.6.4" dependencies = [ "argh", "lib-dict-to-mozc", @@ -165,7 +165,7 @@ dependencies = [ [[package]] name = "lib-dict-to-mozc" -version = "0.6.3" +version = "0.6.4" dependencies = [ "csv", "hashbrown", diff --git a/Cargo.toml b/Cargo.toml index a910136..ec42d23 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ members = [ resolver = "2" [workspace.package] -version = "0.6.3" +version = "0.6.4" authors = ["Masato TOYOSHIMA", "phoepsilonix "] edition = "2021" rust-version = "1.83" @@ -55,6 +55,8 @@ version.workspace = true [dependencies] lib-dict-to-mozc = { workspace = true } argh = { version = "0.1.12", default-features = false } + +[target.'cfg(any(not(any(target_arch = "arm", target_arch = "aarch64")),all(target_arch = "aarch64", not(target_os = "windows"))))'.dependencies] mimalloc = { workspace = true, optional = true } [package.metadata.release] diff --git a/dist-workspace.toml b/dist-workspace.toml index 626905b..7fa2b70 100644 --- a/dist-workspace.toml +++ b/dist-workspace.toml @@ -24,4 +24,5 @@ targets = [ "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc", +"aarch64-pc-windows-msvc", ] diff --git a/src/bin/dict-to-mozc.rs b/src/bin/dict-to-mozc.rs index 30b335d..35d6ea1 100644 --- a/src/bin/dict-to-mozc.rs +++ b/src/bin/dict-to-mozc.rs @@ -1,4 +1,10 @@ -#[cfg(all(not(target_arch = "arm"), feature = "use-mimalloc"))] +#[cfg(all( + feature = "use-mimalloc", + any( + not(any(target_arch = "arm", target_arch = "aarch64")), + all(target_arch = "aarch64", not(target_os = "windows")) + ) +))] #[global_allocator] static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;