Add Xargo support

This commit is contained in:
Jeremy Soller
2017-05-10 21:38:40 -06:00
parent b3a25bd3a3
commit 62d3f4bd93
2 changed files with 6 additions and 2 deletions

3
Xargo.toml Normal file
View File

@@ -0,0 +1,3 @@
[dependencies.alloc]
[dependencies.collections]

View File

@@ -4,12 +4,13 @@ use interrupt;
#[cfg(not(test))]
#[lang = "eh_personality"]
extern "C" fn eh_personality() {}
pub extern "C" fn eh_personality() {}
#[cfg(not(test))]
/// Required to handle panics
#[lang = "panic_fmt"]
extern "C" fn panic_fmt(fmt: ::core::fmt::Arguments, file: &str, line: u32) -> ! {
#[no_mangle]
pub extern "C" fn rust_begin_unwind(fmt: ::core::fmt::Arguments, file: &str, line: u32) -> ! {
println!("PANIC: {}", fmt);
println!("FILE: {}", file);
println!("LINE: {}", line);