avr-std-stub 1.0.3

Contains simple implementations of required language items that `libstd` normally defines on other targets
Documentation
  • Coverage
  • 100%
    1 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 4.99 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 413.36 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • avr-rust/avr-std-stub
    8 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dylanmckay

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.