What is cfg-if?

63/100
Trust Score (C+)
⚠️ Use Caution

cfg-if is a crates that 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. . It has a Nerq Trust Score of 63/100 (C+). 895.6M GitHub stars. Published by Unknown. Last analyzed March 2026.

Why This Score

Trust & Safety Overview

63
TRUST SCORE
C+
GRADE
895.6M
STARS
895.6M
DOWNLOADS

What cfg-if Does

cfg-if is a crates in the crates category. 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. . It is published by Unknown and has no specified license. With 895.6M GitHub stars and 895.6M downloads, it has a large and active community of users and contributors.

Who Should Use cfg-if

cfg-if is suitable for evaluation and non-critical use. Review the trust score breakdown before using in production.

Details

AuthorUnknown
Categorycrates
LicenseNot specified
Typecrates
SourceView on GitHub
Security Score0/100
Activity Score0/100

How to Get Started

Check the trust score before installing:

curl nerq.ai/v1/preflight?target=cfg-if

Setup guide · Full safety report · Production review · Is it safe?

Frequently Asked Questions

What is cfg-if used for?
cfg-if is a crates tool. 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. .
Is cfg-if free?
License: Check project page. cfg-if has 895.6M GitHub stars.
Is cfg-if safe?
cfg-if has a Nerq Trust Score of 63/100 (C+). Use with caution.
What are alternatives to cfg-if?
Top alternatives: . See full comparison.

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