cfg-if
Latest Version: v1.0.4cfg-if is a widely used Rust macro crate that enables ergonomic conditional compilation via if-else-like cfg chains.
Owner: rust-lang
Stars
631
GitHub star count
Last Release
6 months ago
v1.0.4
Contributors
19
N/A
Health Score
N/A
N/A
Key Features
Primary stack
Rust (Apache-2.0)
Community adoption
631 stars
Tech Stack
About
cfg-if is a widely used Rust macro crate that enables ergonomic conditional compilation via if-else-like cfg chains.
cfg-if is auto-discovered from crates.io download signals and mapped to rust-lang/cfg-if. Recent downloads: 125720372. Total downloads: 843144126. Latest crates.io update observed at 2025-10-15T08:12:46.455Z. Discovered at 2026-02-23T08:35:26.821Z. Metadata is enriched asynchronously by the refresh pipeline.
Analyst Note
cfg-if is a widely used Rust macro crate that enables ergonomic conditional compilation via if-else-like cfg chains.
Best For
- Technical stack evaluation for engineering teams
- Dependency governance and upgrade planning in production systems
- Track delivery cadence and release quality from rust-lang
- Primary stack
Not Ideal For
- Security posture signals are mixed; run additional security review before broad adoption
Typical Use Cases
Decision Snapshot
- Product type: Open Source
- Primary language: Rust
- Pricing model: Free
- License: Apache-2.0
- Last Release: 10/15/2025
Data Basis
- Last Sync: Feb 23, 2026, 08:37 AM
- Metrics Updated: Feb 23, 2026, 08:37 AM
- Completeness: 100%
- Last Verified: Feb 23, 2026, 08:37 AM
Data Status
Pros & Cons
Pros
- Public multi-source signals support continuous evaluation
- Maintenance profile can be monitored through recurring refresh signals
Cons
- -Security posture signals are mixed; run additional security review before broad adoption