bobcat-alloc 0.7.47

bobcat-alloc provides allocators for wasm32 and riscv32im.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![no_std]

#[cfg(all(target_family = "wasm", target_os = "unknown"))]
pub use mini_alloc::MiniAlloc as Alloc;

#[macro_export]
macro_rules! bobcat_allocator {
    () => {
        #[cfg(any(
            all(target_family = "wasm", target_os = "unknown"),
            all(target_arch = "riscv32", target_os = "none")
        ))]
        #[global_allocator]
        static ALLOC: $crate::Alloc = $crate::Alloc;
        extern crate alloc;
    };
}