Crate

libc

Raw FFI bindings to C standard library functions and types.

What it is

libc provides raw bindings to the C standard library and POSIX APIs for all supported Rust targets — Linux, macOS, Windows, FreeBSD, and others. It defines the C numeric types (c_int, size_t, off_t) and function signatures needed to call system-level APIs from Rust.

Why it is commonly used

Foundation for any crate that wraps system calls or C libraries. Higher-level crates like nix build on libc to provide safe Rust interfaces to POSIX. Also used directly in unsafe code that requires system-level control.

1.5k
Repositories
91%
Actively maintained
1.4k
Updated ≤ 30 days
4.9M
Total stars
1.3k
Owners

Counted from the Cargo.toml manifests of the 1.5k indexed repositories that declare libc as a dependency — not download counts. Dependency data last verified 2026-08-13.

Browse 1533 repositories using libc in Repos →
Often used with

Crates that show up unusually often in libc projects. The most distinctive pairings rank first — crates these projects use far more than the average indexed Rust project does, not just crates that are popular everywhere. Each percentage is the share of libc projects that also use it.

Used by these organizations
50 of 1.5k repositories · ranked by stars · 1.4k pushed in the last 30 days
bun95kactive

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

⑂ 5.0k8.0k
RuView90kactive

π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.

rtk76kactive

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

⑂ 4.8k2.0k
servo38kactive

Servo aims to empower developers with a lightweight, high-performance alternative for embedding web technologies in applications.

⑂ 3.7k3.1k
tokio33kactive

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

⑂ 3.2k417
rustfs31kactive

🚀2.3x faster than MinIO for 4KB object payloads. RustFS is an open-source, S3-compatible high-performance object storage system supporting migration and coexistence with other S3-compatible platforms such as MinIO and Ceph.

← Browse all repos