avr_std_stub/
lib.rs

1//! Contains simple implementations of required language items that `libstd` normally defines on
2//! other targets.
3//!
4//! You should always have `extern crate avr_std_stubs` defined when using this crate.
5
6#![no_std]
7
8#![feature(lang_items)]
9
10// Disable the stubs for non-AVR targets because #[no_std] is ignored
11// when using the Rust test harness, and we cannot detect if a downstream
12// crate dependent on this crate is being compiled in test mode or not.
13#[cfg(target_arch = "avr")]
14mod stubs;