feat: add __alloc
This commit is contained in:
8
__alloc/zeroizing-alloc-demo/src/main.rs
Normal file
8
__alloc/zeroizing-alloc-demo/src/main.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use zeroizing_alloc::ZeroAlloc;
|
||||
|
||||
#[global_allocator]
|
||||
static ALLOC: ZeroAlloc<std::alloc::System> = ZeroAlloc(std::alloc::System);
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
Reference in New Issue
Block a user