rust-lang/libc
Raw bindings to platform APIs for Rust observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 99
- Release rhythm 94
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 11
- age_days: 4250
- days_rel: 43
- days_push: 8
- n_releases_24m: 38
Adoption not part of the score
2598 stars · 1299 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Rust crate providing raw FFI bindings to platform system libraries (libc), exporting type definitions, constants, and function declarations for C interop. It is a foundational, widely-downloaded dependency of the Rust ecosystem.
Use cases
- call C library functions from Rust
- get libc type definitions and constants in Rust
- write cross-platform system-level Rust code
- interoperate with C code on Linux or macOS
- build no_std system utilities in Rust
When to choose
- you need raw access to POSIX/libc APIs from Rust
- you are writing low-level systems code or a runtime
- you need portable C-interop types across many platforms
When to avoid
- you need Windows API bindings (use windows-sys instead)
- you want safe, idiomatic wrappers rather than raw FFI
- you only need standard library functionality
Facets
library · maturity stable
sdk developer-tools operating-systems developer-tools cross-platform rust windows cross-platform embedded ffi bindings libc system-programming no-std linux macos
10 sources
- readme: https://github.com/rust-lang/libc · fetched 2026-08-28 · 40038ad58f26
- homepage: https://docs.rs/libc · fetched 2026-08-29 · 3d7d8a362554
- site_page: https://docs.rs/ · fetched 2026-08-29 · 0aa25b04e401
- site_page: https://docs.rs/crate/libc/latest · fetched 2026-08-29 · 182faf3687dd
- site_page: https://docs.rs/crate/libc/latest/features · fetched 2026-08-29 · c3599471d10d
- site_page: https://docs.rs/about · fetched 2026-08-29 · 29ab7986fbf5
- site_page: https://docs.rs/about/badges · fetched 2026-08-29 · 6588cac258af
- site_page: https://docs.rs/about/builds · fetched 2026-08-29 · 811231ca4680
- site_page: https://docs.rs/about/metadata · fetched 2026-08-29 · 0dcdccb2b2b2
- site_page: https://docs.rs/about/redirections · fetched 2026-08-29 · 1b1efd93105f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rust-lang/libc | main | 97 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem