#memcmp #rustc #memset #bare-metal #libc #rlibc #memmove #memcpy


A bare-metal library supplying certain libc functions like memcpy, memmove, memset and memcmp. This is designed for use in freestanding environments where another libc does not exist, since rustc may implicitly insert calls to such functions.

9 releases (1 stable)

Uses old Rust 2015

1.0.0 Jan 17, 2016
0.1.5 Jan 15, 2016
0.1.4 Aug 10, 2015
0.1.3 Mar 19, 2015
0.0.2 Nov 21, 2014
Download history 1055/week @ 2021-02-26 882/week @ 2021-03-05 913/week @ 2021-03-12 851/week @ 2021-03-19 999/week @ 2021-03-26 826/week @ 2021-04-02 944/week @ 2021-04-09 940/week @ 2021-04-16 928/week @ 2021-04-23 797/week @ 2021-04-30 1239/week @ 2021-05-07 1340/week @ 2021-05-14 1155/week @ 2021-05-21 1173/week @ 2021-05-28 913/week @ 2021-06-04 1041/week @ 2021-06-11

4,002 downloads per month
Used in less than 14 crates


137 lines


A bare minimum "libc" for Rust crates that do not want to rely on libc itself. This crate provides functions which LLVM often lowers intrinsic calls to and will be required to link correctly.


Add this to your Cargo.toml:


rlibc = "0.1"

And add this to your crate root:

extern crate rlibc;


A bare-metal library supplying functions rustc may lower code to

This library is not intended for general use, and is superseded by a system libc if one is available. In a freestanding context, however, common functions such as memset, memcpy, etc are not implemented. This library provides an implementation of these functions which are either required by libcore or called by rustc implicitly.

This library is never included by default, and must be manually included if necessary. It is an error to include this library when also linking with the system libc library.

No runtime deps