diff --git a/src/lib.rs b/src/lib.rs index 683d78e..741fb7b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,6 +11,7 @@ extern crate volatile; mod arch; #[macro_use] mod macros; +mod misc; use arch::x86_64::device::vga_console; @@ -22,7 +23,8 @@ pub extern fn kernel_main() { ///////////////////////////////////////// vga_console::WRITER.lock().clear_screen(); - println!("Hello world!"); + println!("--- Sparkle v{} booting! ---", ::misc::VERSION); + loop {} diff --git a/src/misc.rs b/src/misc.rs new file mode 100644 index 0000000..d225091 --- /dev/null +++ b/src/misc.rs @@ -0,0 +1,3 @@ +//! Miscellaneous things, mostly constants baked in at compile time. + +pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");