From 548f1b96e6b9c633e6cebd26f0ab9489502d669c Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Tue, 17 Oct 2023 14:07:14 +0300 Subject: [PATCH] hal option not necessary --- cargo/src/main.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cargo/src/main.rs b/cargo/src/main.rs index e0601a8..5a9b3ba 100644 --- a/cargo/src/main.rs +++ b/cargo/src/main.rs @@ -3,7 +3,6 @@ #![no_main] {% endunless -%} -{%- if hal %} {%- unless std %} #[no_mangle] {%- endunless %} @@ -17,9 +16,4 @@ fn main() { log::info!("Hello, world!"); } -{%- else %} -#[no_mangle] -extern "C" fn app_main() -> i32 { - 42 -} {%- endif %}