Is cfg-if (crates) safe?
Review before you connect
Why: too little code to check: 6 files read.
- Trust score 82/100
- As of December 3, 2026
- 506,044,176 downloads/90d
What it is
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 is the item that gets emitted.
Top findings
No findings in what we read.
6 files read.
Signed result
This answer is signed (Ed25519, JWS). Get the signed attestation and check it offline against our public keys: how to verify an attestation. How scoring works.
Source: https://crates.io/crates/cfg-if
Maintainer? Request a re-check: claim this tool to re-check it, get alerts when its answer changes, and respond to a finding. Reading your result.