#required #language #panic-handler #error #items #libstd #defines

nightly no-std avr-std-stub

Contains simple implementations of required language items that libstd normally defines on other targets

4 stable releases

1.0.3 Feb 13, 2021
1.0.2 Jul 25, 2020

#1067 in Embedded development

Download history 43/week @ 2024-08-31 43/week @ 2024-09-07 40/week @ 2024-09-14 70/week @ 2024-09-21 71/week @ 2024-09-28 25/week @ 2024-10-05 46/week @ 2024-10-12 34/week @ 2024-10-19 28/week @ 2024-10-26 61/week @ 2024-11-02 19/week @ 2024-11-09 32/week @ 2024-11-16 50/week @ 2024-11-23 35/week @ 2024-11-30 90/week @ 2024-12-07 100/week @ 2024-12-14

284 downloads per month
Used in 2 crates

MIT license

4KB

avr-std-stub

Crates.io MIT licensed

API Documentation

Contains simple implementations of required language items that libstd normally defines on other targets.

This fixes the following error when compiling for Rust:

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

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

error: aborting due to 2 previous errors

Usage

Add the following to your crate's Cargo.toml:

[dependencies]
avr-std-stub = "1.0"

Then add the following to your crate's lib.rs or main.rs

extern crate avr_std_stub;

NOTE: You must add an extern crate declaration, otherwise the crate will not be linked and the definitions it provides will not be used.


lib.rs:

Contains simple implementations of required language items that libstd normally defines on other targets.

You should always have extern crate avr_std_stubs defined when using this crate.

No runtime deps