Is cfg-if Safe? — Rust Crate 2026

cfg-if has a Trust Score of 63/100 (C+). 895.6M downloads. Updated March 2026.

63
TRUST
C+
GRADE
895.6M
DOWNLOADS
AuthorUnknown
LicenseNot specified

FAQ

Is cfg-if safe?
Trust: 63/100 (C+). A macro to ergonomically define an item depending on a large number of #[cfg] parameters. Structured like an if-else chain, the first matching branch .

Last updated March 2026. Trust scores based on automated analysis of public data.