Registry / utility / glibc-version

glibc-version

JSON →
library0.1.2rscratesunverified

Discovers the GNU C library version at build time.

# Cargo.toml [dependencies] glibc_version = "0.1.2"
INSTALL
IMPORT
SIG · GLIBC-VERSION
G
glibc-version
utilityrustv0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

glibc_version
use glibc_version::glibc_version;

Prints the detected glibc version at runtime.

use glibc_version::glibc_version; fn main() { let version = glibc_version().unwrap(); println!("glibc version: {}", version); }
Debug
Known issues
gotchaOnly works on Linux systems with glibc.
fix
Use conditional compilation or fallback for non-glibc platforms.
affects: >=0.1.0
Upgrade
Version history
0.1.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
glibc-version — cargo add glibc-version · libregistry