mirror of
https://github.com/encounter/objdiff.git
synced 2025-07-19 19:46:00 +00:00
15 lines
370 B
Rust
15 lines
370 B
Rust
#![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() };
|