Expand description
libc-rs – pure-Rust #![no_std] native application runtime, compiler memory
intrinsics, and syscall substrate for unikernel environments.
Unlike POSIX or Linux libc implementations, libc-rs carries no C code,
no pthreads, and no legacy POSIX bloat.
Re-exports§
Modules§
- errno
- Unikernel system error numbers (
Errno) andSysResultalias. - fd
- File descriptor types (
RawFd,BorrowedFd,OwnedFd) and*atflags. - fs
- Filesystem metadata, path resolution, and directory iteration.
- heap
- Dynamic
mmap_anonymousslab and page-granularity allocator for unikernel EL0 binaries. - io
- File descriptor I/O, duplication, pipes,
fcntl, andioctloperations. - math
- Pure-Rust
#![no_std]IEEE-754 floating-point intrinsics. - mem
- Freestanding memory and byte-slice intrinsics.
- mm
- Virtual memory mapping and protection calls (
mmap,munmap,mprotect,madvise,msync,mincore). - net
- Socket, UNIX domain, and Virtio-Vsock syscall wrappers.
- poll
- I/O multiplexing (
ppoll,epoll,eventfd) syscall wrappers. - process
- Process lifecycle, credentials, signals, resource limits, and wait syscalls.
- rand
- Kernel cryptographic entropy (
getrandom) syscall wrappers. - raw
- Raw AArch64
svc #0system call dispatch and syscall numbers. - startup
- Process startup state (
argc,argv,environ,auxv), ELF note, and_startentry macro. - sync
- Pure-Rust futex synchronization primitives (
FutexMutex) with zeropthreadsdependencies. - thread
- Pure-Rust thread lifecycle (
spawn_thread,ThreadHandle), per-threaderrno, and 64-key thread-local storage with exit destructors. - time
- Clocks, timestamps, and high-resolution sleep syscalls.
Macros§
- declare_
native_ note - Emits a
.note.uk_nativeELF note static. - process_
entry - Emits a freestanding
aarch64-unknown-noneprocess entry point (_start), stack initializer, and panic handler that exits viaexit_group/abort.