From 4c793e6dd9d2063609e7a0a1d5b9be4961bb7436 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sat, 22 Aug 2015 13:12:20 +0200 Subject: [PATCH] Add rlibc dependency for `memset`, `memcpy`, etc. --- Cargo.toml | 3 +++ src/lib.rs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 3e2ae567..872dd9b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,3 +5,6 @@ authors = ["Philipp Oppermann "] [lib] crate-type = ["staticlib"] + +[dependencies] +rlibc = "*" diff --git a/src/lib.rs b/src/lib.rs index 196469ef..395d695c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,6 +15,8 @@ #![feature(no_std, lang_items)] #![no_std] +extern crate rlibc; + #[no_mangle] pub extern fn main() { // ATTENTION: we have a very small stack and no guard page