avr-rust / ruduino

Reusable components for the Arduino Uno.
Apache License 2.0
695 stars 49 forks source link

#![feature(unwind-attributes)] has been removed? #41

Closed Rynibami closed 2 years ago

Rynibami commented 2 years ago

I’m trying to compile a basic program that blinks my ATmega328p, but whenever I compile my code I get the following error message:

error[E0557]: feature has been removed
 --> /Users/ryan/.cargo/registry/src/github.com-1ecc6299db9ec823/ruduino-0.3.2/src/lib.rs:8:12
  |
8 | #![feature(unwind_attributes)]
  |            ^^^^^^^^^^^^^^^^^ feature has been removed
  |
  = note: use the C-unwind ABI instead

This problem seems to be close to the #![feature(const_fn)] has been removed problem, but that could be solved by just removing the #![feature(const_fn)] line from the imported crate. Yet, If I delete the #![feature(unwind_attributes)] line, I’ll get the following error:

error: language item required, but not found: `eh_personality`

error: `#[panic_handler]` function required, but not found

error: could not compile `avr-projects` due to 2 previous errors
stappersg commented 2 years ago

Fixed with https://github.com/avr-rust/ruduino/commit/6fec9ca38f713d9353bb9a1f7b3038b8c1563fc9