#required #language #error #items #libstd #targets #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

#626 in Embedded development

Download history 110/week @ 2024-03-11 132/week @ 2024-03-18 107/week @ 2024-03-25 130/week @ 2024-04-01 93/week @ 2024-04-08 105/week @ 2024-04-15 125/week @ 2024-04-22 110/week @ 2024-04-29 74/week @ 2024-05-06 77/week @ 2024-05-13 85/week @ 2024-05-20 64/week @ 2024-05-27 83/week @ 2024-06-03 56/week @ 2024-06-10 83/week @ 2024-06-17 73/week @ 2024-06-24

305 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