mirror of
https://github.com/encounter/objdiff.git
synced 2025-12-20 18:29:19 +00:00
WIP objdiff 3.0 refactor
This commit is contained in:
14
objdiff-wasm/src/lib.rs
Normal file
14
objdiff-wasm/src/lib.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(target_os = "wasi")]
|
||||
mod api;
|
||||
#[cfg(target_os = "wasi")]
|
||||
mod logging;
|
||||
|
||||
#[cfg(all(target_os = "wasi", not(feature = "std")))]
|
||||
mod cabi_realloc;
|
||||
|
||||
#[cfg(all(target_family = "wasm", not(feature = "std")))]
|
||||
#[global_allocator]
|
||||
static ALLOCATOR: talc::TalckWasm = unsafe { talc::TalckWasm::new_global() };
|
||||
Reference in New Issue
Block a user