#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 3541/week @ 2024-03-14 3743/week @ 2024-03-21 3269/week @ 2024-03-28 2971/week @ 2024-04-04 3130/week @ 2024-04-11 2660/week @ 2024-04-18 3017/week @ 2024-04-25 2542/week @ 2024-05-02 2202/week @ 2024-05-09 2667/week @ 2024-05-16 2419/week @ 2024-05-23 3208/week @ 2024-05-30 1486/week @ 2024-06-06 1719/week @ 2024-06-13 1827/week @ 2024-06-20 1470/week @ 2024-06-27

6,789 downloads per month
Used in 98 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