A if/elif-like macro for Rust #[cfg] statements
☆646Sep 16, 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:
- ☆937Aug 25, 2026Updated last month
- Conditional compilation according to rustc compiler version☆394Aug 3, 2026Updated last month
- A macro to generate structures which behave like bitflags☆1,162Sep 18, 2026Updated last week
- "Small vector" optimization for Rust: store up to a small number of items on the stack☆1,738Updated this week
- Rust library for single assignment cells and lazy statics without macros☆2,090Mar 12, 2026Updated 6 months ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- The enum Either with variants Left and Right is a general purpose sum type with two cases.☆559Aug 20, 2026Updated last month
- Macros for all your token pasting needs☆1,090Oct 6, 2024Updated last year
- Temporary file library for rust☆1,466Sep 18, 2026Updated last week
- A small macro for defining lazy evaluated static variables in Rust.☆2,033Sep 16, 2026Updated last week
- A crate for safe and ergonomic pin-projection.☆719Updated this week
- Rust quasi-quoting☆1,579Aug 22, 2026Updated last month
- A hash table with consistent order and fast iteration; access items by key or sequence index☆2,438Sep 5, 2026Updated 2 weeks ago
- Support for matching file paths against Unix shell style patterns.☆596Jul 21, 2026Updated 2 months ago
- Fast floating point to string conversion☆705Aug 6, 2026Updated last month
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Backtraces in Rust☆629Sep 2, 2026Updated 3 weeks ago
- Link-time initialization, destruction, scattered data collection macros for Rust☆1,088Sep 12, 2026Updated last week
- Parser and evaluator for Cargo's flavor of Semantic Versioning☆671Jun 24, 2026Updated 3 months ago
- Parser for Rust source code☆3,422Updated this week
- A vector with a fixed capacity. (Rust)☆907Jul 19, 2026Updated 2 months ago
- Subcommand to show result of macro expansion☆3,128Sep 10, 2026Updated 2 weeks ago
- Some more derive(Trait) options☆2,142Sep 7, 2026Updated 2 weeks ago
- Compile time static maps for Rust☆2,193Sep 17, 2026Updated last week
- Rust library for build scripts to compile C/C++ code into a Rust library☆2,160Updated this week
- End-to-end encrypted email - Proton Mail • AdSpecial offer: 40% Off Yearly / 80% Off First Month. All Proton services are open source and independently audited for security.
- Raw bindings to platform APIs for Rust☆2,611Updated this week
- Rust library allowing to register multiple handlers for the same signal☆869Apr 4, 2026Updated 5 months ago
- Tar file reading/writing for Rust☆739Updated this week
- Numeric traits for generic mathematics in Rust☆972Jul 7, 2026Updated 2 months ago
- derive(Error) for struct and enum error types☆5,551Updated this week
- Slab allocator for Rust☆940Aug 16, 2026Updated last month
- A collection of numeric types and traits for Rust.☆1,223Jul 7, 2026Updated 2 months ago
- Extra iterator adaptors, iterator methods, free functions, and macros.☆3,169Sep 5, 2026Updated 2 weeks ago
- A fast bump allocation arena for Rust☆2,334Sep 16, 2026Updated last week
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Runtime for executing procedural macros as WebAssembly☆1,527Jul 19, 2026Updated 2 months ago
- Compact and efficient synchronization primitives for Rust. Also provides an API for creating custom synchronization primitives.☆3,414Aug 28, 2026Updated 3 weeks ago
- derive builder implementation for rust structs☆1,541Jan 2, 2026Updated 8 months ago
- Rust port of Google's SwissTable hash map☆2,998Updated this week
- Optimized string search routines for Rust.☆1,567Aug 10, 2026Updated last month
- Type erasure for async trait methods☆2,200Updated this week
- Test harness for ui tests of compiler diagnostics☆1,000Sep 8, 2026Updated 2 weeks ago