$ libc

v0.2.186

Raw FFI bindings to platform libraries like libc.

Downloads: 1.1B
Recent: 204.9M
Versions: 202
Updated: April 23, 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.185 → 0.2.186

$ DOWNLOADS TREND

725.5M1089.0M

$ VERSION HISTORY

v0.2.186April 23, 2026
v0.2.185April 13, 2026
v0.2.184April 1, 2026
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.186"