A if/elif-like macro for Rust #[cfg] statements
☆644Jun 22, 2026Updated 2 months ago
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:
- ☆934Aug 25, 2026Updated last week
- Conditional compilation according to rustc compiler version☆394Aug 3, 2026Updated last month
- A macro to generate structures which behave like bitflags☆1,154Jul 16, 2026Updated last month
- "Small vector" optimization for Rust: store up to a small number of items on the stack☆1,714Updated this week
- Rust library for single assignment cells and lazy statics without macros☆2,091Mar 12, 2026Updated 5 months ago
- 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.
- The enum Either with variants Left and Right is a general purpose sum type with two cases.☆558Aug 20, 2026Updated 2 weeks ago
- Macros for all your token pasting needs☆1,090Oct 6, 2024Updated last year
- Temporary file library for rust☆1,459Updated this week
- A small macro for defining lazy evaluated static variables in Rust.☆2,035Jan 29, 2025Updated last year
- A crate for safe and ergonomic pin-projection.☆717Updated this week
- Rust quasi-quoting☆1,580Aug 22, 2026Updated 2 weeks ago
- A hash table with consistent order and fast iteration; access items by key or sequence index☆2,418Aug 28, 2026Updated last week
- Support for matching file paths against Unix shell style patterns.☆594Jul 21, 2026Updated last month
- Fast floating point to string conversion☆704Aug 6, 2026Updated 3 weeks ago
- GPUs on demand by Runpod - Special Offer Available • AdRun AI, ML, and HPC workloads on powerful cloud GPUs—without limits or wasted spend. Deploy GPUs in under a minute and pay by the second.
- Backtraces in Rust☆628Updated this week
- Link-time initialization, destruction, scattered data collection macros for Rust☆1,078Aug 14, 2026Updated 3 weeks ago
- Parser and evaluator for Cargo's flavor of Semantic Versioning☆669Jun 24, 2026Updated 2 months ago
- Parser for Rust source code☆3,419Aug 26, 2026Updated last week
- A vector with a fixed capacity. (Rust)☆895Jul 19, 2026Updated last month
- Subcommand to show result of macro expansion☆3,125Aug 19, 2026Updated 2 weeks ago
- Some more derive(Trait) options☆2,133Updated this week
- Compile time static maps for Rust☆2,186Updated this week
- Rust library for build scripts to compile C/C++ code into a Rust library☆2,153Updated this week
- 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.
- Raw bindings to platform APIs for Rust☆2,602Updated this week
- Rust library allowing to register multiple handlers for the same signal☆866Apr 4, 2026Updated 5 months ago
- Tar file reading/writing for Rust☆736Updated this week
- Numeric traits for generic mathematics in Rust☆965Jul 7, 2026Updated last month
- derive(Error) for struct and enum error types☆5,531Aug 22, 2026Updated 2 weeks ago
- Slab allocator for Rust☆935Aug 16, 2026Updated 2 weeks ago
- A collection of numeric types and traits for Rust.☆1,221Jul 7, 2026Updated last month
- Extra iterator adaptors, iterator methods, free functions, and macros.☆3,165Updated this week
- A fast bump allocation arena for Rust☆2,321Jul 23, 2026Updated last month
- 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.
- Compact and efficient synchronization primitives for Rust. Also provides an API for creating custom synchronization primitives.☆3,402Aug 28, 2026Updated last week
- Runtime for executing procedural macros as WebAssembly☆1,523Jul 19, 2026Updated last month
- derive builder implementation for rust structs☆1,540Jan 2, 2026Updated 8 months ago
- Rust port of Google's SwissTable hash map☆2,991Aug 27, 2026Updated last week
- Optimized string search routines for Rust.☆1,549Aug 10, 2026Updated 3 weeks ago
- Type erasure for async trait methods☆2,190Aug 29, 2026Updated last week
- Test harness for ui tests of compiler diagnostics☆995Aug 3, 2026Updated last month