$ libc

v0.2.183

Raw FFI bindings to platform libraries like libc.

Downloads: 972.3M
Recent: 154.3M
Versions: 199
Updated: March 8, 2026

Latest Update Summary

Crate

Name: libc New version: 1.0.0-alpha.3 Release date: 2026-02-09T21:30:57.055961Z

Crate readme

Short description Raw FFI bindings to platforms' system libraries

Long description libc provides definitions necessary to interoperate with C code on platforms supported by Rust, including type definitions, constants, and function headers. Windows API bindings are not included in this crate.

Featuresstd: by default libc links to the standard library. • extra_traits: all structs implemented in libc are Copy and Clone.

Code Examples Add to Cargo.toml

 [dependencies]
libc = "0.2"

Linkshttps://github.com/rust-lang/rfcs/blob/HEAD/text/1291-promote-libc.mdhttps://docs.rs/windows-syshttps://github.com/rust-lang/libc/blob/HEAD/ci/verify-build.pyhttps://github.com/rust-lang/libc/blob/HEAD/LICENSE-APACHEhttps://github.com/rust-lang/libc/blob/HEAD/LICENSE-MIThttps://github.com/rust-lang/libc/blob/HEAD/CONTRIBUTING.mdhttps://www.rust-lang.org/policies/code-of-conducthttps://github.com/rust-lang/libc/actionshttps://cirrus-ci.com/github/rust-lang/libchttps://crates.io/crates/libchttps://docs.rs/libc

https://api.github.com/repos/rust-lang/libc/releases/284583966

Release info

Release version:

Release description

Code Examples

Patch update: 0.2.182 → 0.2.183

$ DOWNLOADS TREND

725.5M972.3M

$ VERSION HISTORY

v0.2.183March 8, 2026
v0.2.182February 13, 2026
v0.2.181February 9, 2026
v0.2.180January 8, 2026
v0.2.179January 6, 2026
v0.2.179January 3, 2026
v0.2.178December 2, 2025
v0.2.177October 9, 2025
v1.0.0-alpha.1September 23, 2025

$ LINKS

$ INSTALL

cargo add libc

Or add to Cargo.toml: libc = "0.2.183"