From 19b23739821a60121b79eb94022f71901b931fc7 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 23 Feb 2021 10:13:42 +0100 Subject: [PATCH] Create a minimal bare-bones executable --- src/main.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index e7a11a96..277f9dce 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,9 @@ -fn main() { - println!("Hello, world!"); +#![no_std] +#![no_main] + +use core::panic::PanicInfo; + +#[panic_handler] +fn panic(_info: &PanicInfo) -> ! { + loop {} }