File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- #[ cfg( all(
2- feature = "allocator" ,
3- not( any( target_arch = "arm" , target_os = "freebsd" , target_family = "wasm" ) )
4- ) ) ]
5- #[ global_allocator]
6- static ALLOC : mimalloc_safe:: MiMalloc = mimalloc_safe:: MiMalloc ;
7-
81use std:: mem;
92
103use napi:: { Task , bindgen_prelude:: AsyncTask } ;
@@ -22,6 +15,13 @@ mod convert;
2215mod types;
2316pub use types:: * ;
2417
18+ #[ cfg( all(
19+ feature = "allocator" ,
20+ not( any( target_arch = "arm" , target_os = "freebsd" , target_family = "wasm" ) )
21+ ) ) ]
22+ #[ global_allocator]
23+ static ALLOC : mimalloc_safe:: MiMalloc = mimalloc_safe:: MiMalloc ;
24+
2525// Raw transfer is only supported on 64-bit little-endian systems.
2626// Don't include raw transfer code on other platforms (notably WASM32).
2727// `raw_transfer_types` still needs to be compiled, as `assert_layouts` refers to those types,
You can’t perform that action at this time.
0 commit comments