#libc #bare-metal #calls #function #rustc #memset #memcpy

rlibc

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

#5 in #memcpy

Download history 2294/week @ 2024-01-03 2934/week @ 2024-01-10 2531/week @ 2024-01-17 2737/week @ 2024-01-24 2322/week @ 2024-01-31 2702/week @ 2024-02-07 3303/week @ 2024-02-14 2574/week @ 2024-02-21 3000/week @ 2024-02-28 3399/week @ 2024-03-06 3605/week @ 2024-03-13 3704/week @ 2024-03-20 3320/week @ 2024-03-27 3017/week @ 2024-04-03 2985/week @ 2024-04-10 2451/week @ 2024-04-17

12,390 downloads per month
Used in 95 crates (15 directly)

MIT/Apache

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.

No runtime deps