A if/elif-like macro for Rust #[cfg] statements
☆637Jun 22, 2026Updated last week
Alternatives and similar repositories for cfg-if
Users that are interested in cfg-if are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- ☆923Jun 24, 2026Updated last week
- Conditional compilation according to rustc compiler version☆394Jun 24, 2026Updated last week
- A macro to generate structures which behave like bitflags☆1,138Jun 5, 2026Updated last month
- "Small vector" optimization for Rust: store up to a small number of items on the stack☆1,651Jun 11, 2026Updated 3 weeks ago
- The enum Either with variants Left and Right is a general purpose sum type with two cases.☆557May 22, 2026Updated last month
- Bare Metal GPUs on DigitalOcean Gradient AI • AdPurpose-built for serious AI teams training foundational models, running large-scale inference, and pushing the boundaries of what's possible.
- Rust library for single assignment cells and lazy statics without macros☆2,085Mar 12, 2026Updated 3 months ago
- Macros for all your token pasting needs☆1,090Oct 6, 2024Updated last year
- Temporary file library for rust☆1,442Updated this week
- A small macro for defining lazy evaluated static variables in Rust.☆2,029Jan 29, 2025Updated last year
- A crate for safe and ergonomic pin-projection.☆713Jun 18, 2026Updated 2 weeks ago
- Rust quasi-quoting☆1,550Jun 24, 2026Updated last week
- A hash table with consistent order and fast iteration; access items by key or sequence index☆2,386May 2, 2026Updated 2 months ago
- Backtraces in Rust☆616Jun 11, 2026Updated 3 weeks ago
- Support for matching file paths against Unix shell style patterns.☆585Dec 2, 2025Updated 7 months ago
- End-to-end encrypted cloud storage - Proton Drive • AdSpecial offer: 40% Off Yearly / 80% Off First Month. Protect your most important files, photos, and documents from prying eyes.
- Fast floating point to string conversion☆703Jun 24, 2026Updated last week
- Link-time initialization, destruction, scattered data collection macros for Rust☆1,042Jun 27, 2026Updated last week
- Parser and evaluator for Cargo's flavor of Semantic Versioning☆668Jun 24, 2026Updated last week
- Parser for Rust source code☆3,338Jun 24, 2026Updated last week
- A vector with a fixed capacity. (Rust)☆876Jun 23, 2026Updated last week
- Subcommand to show result of macro expansion☆3,100Jun 24, 2026Updated last week
- Some more derive(Trait) options☆2,118Jun 18, 2026Updated 2 weeks ago
- Rust library allowing to register multiple handlers for the same signal☆855Apr 4, 2026Updated 3 months ago
- Compile time static maps for Rust☆2,164Jun 24, 2026Updated last week
- GPU virtual machines on DigitalOcean Gradient AI • AdGet to production fast with high-performance AMD and NVIDIA GPUs you can spin up in seconds. The definition of operational simplicity.
- Rust library for build scripts to compile C/C++ code into a Rust library☆2,132Jun 28, 2026Updated last week
- Numeric traits for generic mathematics in Rust☆950Jun 17, 2025Updated last year
- Tar file reading/writing for Rust☆724Jun 28, 2026Updated last week
- Raw bindings to platform APIs for Rust☆2,564Jun 28, 2026Updated last week
- derive(Error) for struct and enum error types☆5,465Jun 24, 2026Updated last week
- Slab allocator for Rust☆913Jan 31, 2026Updated 5 months ago
- Extra iterator adaptors, iterator methods, free functions, and macros.☆3,141Jun 25, 2026Updated last week
- A fast bump allocation arena for Rust☆2,255Jun 23, 2026Updated last week
- Optimized string search routines for Rust.☆1,487Updated this week
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- A collection of numeric types and traits for Rust.☆1,212Jan 25, 2025Updated last year
- Compact and efficient synchronization primitives for Rust. Also provides an API for creating custom synchronization primitives.☆3,381Jun 8, 2026Updated 3 weeks ago
- Rust port of Google's SwissTable hash map☆2,949Jun 20, 2026Updated 2 weeks ago
- Runtime for executing procedural macros as WebAssembly☆1,509Jun 24, 2026Updated last week
- derive builder implementation for rust structs☆1,536Jan 2, 2026Updated 6 months ago
- Test harness for ui tests of compiler diagnostics☆970Jun 24, 2026Updated last week
- Type erasure for async trait methods☆2,160Jun 24, 2026Updated last week