RScrates.ioTrending
cfg-if
PWR98
STB82
HYP80
Refuses to DieBus Factor 1

Writes your cfg attributes as an if/else chain instead of a pile of negations.

$ cargo install cfg-if0 minted

Nobody is hunting this one yet.

RScrates.ioTrendingrust-lang · 34

cfg-if

Writes your cfg attributes as an if/else chain instead of a pile of negations.

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.

Minted
0
0 collectors · 0 holo · 0 gold
Genesis #001
Unclaimed
First pull on Earth
Discoverer
Launch pool
Season 1
Real-world stats
Downloads (total)
1.9B
GitHub stars
646
Dependent repos
110K
Versions
17
First release
2015-07-08
Latest release
2026-09-16
Maintainers
1
License
MIT
In battle
HP
112
ATK
54
  • Refuses to Die Deprecated or archived, still downloaded. Survives the first lethal hit with 1 HP. −20% ATK.
  • Bus Factor 1 One maintainer. +20% ATK, −10% HP.
×1.5 against Go · weak to AI models
No garbage collector. No garbage.

None for sale.

Activity
No big pulls yet.