From 47e383545f4aac3bfaec0563429cc721540e665a Mon Sep 17 00:00:00 2001 From: Jeff Glaum Date: Mon, 8 Sep 2025 15:15:38 -0700 Subject: Initial commit --- src/main.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main.rs (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 000000000..7111536ff --- /dev/null +++ b/src/main.rs @@ -0,0 +1,18 @@ +#![cfg_attr(target_os = "none", no_std)] +#![cfg_attr(target_os = "none", no_main)] + +#[cfg(target_os = "none")] +mod baremetal; + +#[cfg(not(target_os = "none"))] +fn main() { + println!("Hello, world!"); +} + +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +} -- cgit