| Crates.io | avr-std-stub |
| lib.rs | avr-std-stub |
| version | 1.0.3 |
| created_at | 2020-07-25 12:22:52.259761+00 |
| updated_at | 2021-02-13 10:56:51.385259+00 |
| description | Contains simple implementations of required language items that `libstd` normally defines on other targets |
| homepage | |
| repository | https://github.com/avr-rust/avr-std-stub |
| max_upload_size | |
| id | 269473 |
| size | 4,990 |
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
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.