#![no_std] #![no_main] extern crate alloc; use alloc::vec::Vec; use foundry_os::{println, println_log}; #[no_mangle] unsafe extern "C" fn kmain() -> ! { // All limine requests must also be referenced in a called function, otherwise they may be // removed by the linker. println_log!(" [ Initialising ] "); if let Err(err) = foundry_os::boot() { panic!("{}", err); } let dimensions = lib_ascii::screensize_chars(); let dimensions2 = lib_framebuffer::screensize_px(); println!("Dimensions: {}x{} (px)", dimensions2.0, dimensions2.1); println!("Dimensions: {}x{} (chars)", dimensions.0, dimensions.1); println!( " $$$$$$$$\\ $$\\ $$ _____| $$ | $$ | $$$$$$\\ $$\\ $$\\ $$$$$$$\\ $$$$$$$ | $$$$$$\\ $$\\ $$\\ $$$$$\\ $$ __$$\\ $$ | $$ |$$ __$$\\ $$ __$$ |$$ __$$\\ $$ | $$ | $$ __|$$ / $$ |$$ | $$ |$$ | $$ |$$ / $$ |$$ | \\__|$$ | $$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ | \\$$$$$$ |\\$$$$$$ |$$ | $$ |\\$$$$$$$ |$$ | \\$$$$$$$ | \\__| \\______/ \\______/ \\__| \\__| \\_______|\\__| \\____$$ | $$$$$$\\ $$$$$$\\ $$\\ $$\\ $$\\ $$\\ $$ | $$ __$$\\ $$ __$$\\ $$ | $$ |$$$$ | \\$$$$$$ | $$ / $$ |$$ / \\__| $$ | $$ |\\_$$ | \\______/ $$ | $$ |\\$$$$$$\\ \\$$\\ $$ | $$ | $$ | $$ | \\____$$\\ \\$$\\$$ / $$ | $$ | $$ |$$\\ $$ | \\$$$ / $$ | $$$$$$ |\\$$$$$$ | \\$ / $$$$$$\\ \\______/ \\______/ \\_/ \\______| " ); let mut vec = Vec::new(); for i in 0..100 { vec.push(i); } println!("{:?}", vec); loop {} }