totally didn't import an allocator...

This commit is contained in:
2025-02-22 21:02:29 +00:00
parent 36cb118933
commit 361c67764d
4 changed files with 36 additions and 4 deletions
+10
View File
@@ -1,6 +1,10 @@
#![no_std]
#![no_main]
extern crate alloc;
use alloc::vec::Vec;
use foundry_os::{println, println_log};
#[no_mangle]
@@ -40,5 +44,11 @@ unsafe extern "C" fn kmain() -> ! {
"
);
let mut vec = Vec::new();
for i in 0..100 {
vec.push(i);
}
println!("{:?}", vec);
loop {}
}