Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#![feature(lang_items)]
#![feature(no_std,core)]
#![no_std]
#![crate_type = "staticlib"]
extern crate core;
// Various lang items required by rustc
#[lang = "stack_exhausted"]
extern fn stack_exhausted() {}
#[lang = "eh_personality"]
extern fn eh_personality() {}
#[lang = "panic_fmt"]
fn panic_fmt() -> ! { loop {} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment