We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a3765c commit 668e4fbCopy full SHA for 668e4fb
crates/alloc/Cargo.toml
@@ -0,0 +1,9 @@
1
+[package]
2
+edition = "2021"
3
+name = "global_alloc"
4
+version = "0.1.0"
5
+
6
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
8
+[target.'cfg(not(all(target_os = "windows", target_arch = "aarch64")))'.dependencies]
9
+mimalloc-rust = {version = "0.1"}
crates/alloc/src/lib.rs
@@ -0,0 +1,6 @@
+#[cfg(all(
+ not(debug_assertions),
+ not(all(target_os = "windows", target_arch = "aarch64"))
+))]
+#[global_allocator]
+static ALLOC: mimalloc_rust::GlobalMiMalloc = mimalloc_rust::GlobalMiMalloc;
0 commit comments