1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2023, Offchain Labs, Inc.
// For licensing, see https://github.com/OffchainLabs/stylus-sdk-rs/blob/stylus/licenses/COPYRIGHT.md

#![no_std]

use cfg_if::cfg_if;

cfg_if! {
    if #[cfg(target_arch = "wasm32")] {
        mod imp;
        pub use imp::MiniAlloc;
    } else {
        pub use wee_alloc::WeeAlloc as MiniAlloc;
    }
}