Trendoday

cfg-if

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.

  • Latest version1.0.5
  • Total downloads1.7B
  • Downloads (90 days)431M
#19Rank now –
#18Peak rank
4Days on list
627Score · 7d
Nov 5, 2026First seen
Rank · 7 days

About cfg-if

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.

Latest version
1.0.5
Total downloads
1.7B
Downloads (90 days)
431M
Created
2015-07-08

Details from crates.io ↗.

Trending history

cfg-if was first seen on crates.io · Most downloaded (90 days) on Nov 5, 2026. Since then it has appeared in 13 checks on 4 different days. Its best position was #18 of 50, reached on Nov 5, 10:08 UTC. It is #19 right now, holding steady at #19 over the last 6 checks.

Rank history

Position on crates.io · Most downloaded (90 days) at every check (lower is better).

#1#17#33#50 Nov 5Nov 6Nov 6Nov 7Nov 8 Nov 5, 10:08 UTC · #18Nov 5, 16:08 UTC · #18Nov 5, 22:08 UTC · #18Nov 6, 04:08 UTC · #18Nov 6, 10:08 UTC · #18Nov 6, 16:08 UTC · #18Nov 6, 22:08 UTC · #18Nov 7, 04:08 UTC · #19Nov 7, 10:08 UTC · #19Nov 7, 16:08 UTC · #19Nov 7, 22:08 UTC · #19Nov 8, 04:08 UTC · #19Nov 8, 10:08 UTC · #19

Last 14 days

Best rank per day (UTC).

Oct 26today

Metric history

downloads as reported by crates.io.

0142772k285543k432641k Nov 5Nov 6Nov 6Nov 7Nov 8 Nov 5, 10:08 UTC · 421208kNov 5, 16:08 UTC · 422841kNov 5, 22:08 UTC · 424765kNov 6, 04:08 UTC · 424379kNov 6, 10:08 UTC · 426007kNov 6, 16:08 UTC · 427573kNov 6, 22:08 UTC · 429386kNov 7, 04:08 UTC · 429055kNov 7, 10:08 UTC · 430410kNov 7, 16:08 UTC · 431505kNov 7, 22:08 UTC · 432641kNov 8, 04:08 UTC · 429948kNov 8, 10:08 UTC · 431025k

Questions

Is cfg-if trending on crates.io Top Crates right now?

Yes. As of Nov 8, 10:08 UTC it is #19, holding steady at #19 over the last 6 checks.

What is the highest rank cfg-if reached?

#18 on crates.io · Most downloaded (90 days), on Nov 5, 10:08 UTC. Trendoday checks this list every 360 minutes.

How long has cfg-if been trending?

It was first seen on Nov 5, 2026 and has been on the list on 4 days (13 checks) since.