feat: add __alloc

This commit is contained in:
2025-06-27 23:11:48 +08:00
parent c966ad621d
commit 564977aad7
4 changed files with 34 additions and 1 deletions

View 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!");
}