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 |
#5 in #memset
10,427 downloads per month
Used in 107 crates
(16 directly)
7KB
137 lines
rlibc
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.
Usage
Add this to your Cargo.toml
:
[dependencies]
rlibc = "0.1"
And add this to your crate root:
extern crate rlibc;
lib.rs
:
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.