I want to try Rust on STM32 microcontroller. The compiler is rust-1.33 stable. I use #![no_std], and the error:
error: language item required, but not found: eh_personality
error: aborting due to previous error
error: Could not compile blink
.
Here is a x86 test code, which writes the same error:
#![no_std]
use core::panic::PanicInfo;
#[panic_handler]
pub fn panic(_panicinfo: &PanicInfo) -> !{
loop {}
}
fn main() {
}
How can I avoid this error?