Registry / other / rlibc
library1.0.0rscratesunverified

A bare-metal library supplying libc functions like memcpy, memmove, memset, and memcmp for freestanding environments.

# Cargo.toml [dependencies] rlibc = "1.0.0"
INSTALL
IMPORT
SIG · RLIBC
R
rlibc
otherrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

memcpy
use rlibc::memcpy;

Copies memory from source to destination using memcpy.

use rlibc::memcpy; fn main() { let src = [1u8, 2, 3]; let mut dst = [0u8; 3]; unsafe { memcpy(dst.as_mut_ptr(), src.as_ptr(), 3); } println!("Copied: {:?}", dst); }
Debug
Known issues
gotchaRequires unsafe code; incorrect usage can cause undefined behavior.
fix
Ensure pointers are valid and non-overlapping.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
rlibc — cargo add rlibc · libregistry