A if/elif-like macro for Rust #[cfg] statements
☆640Jun 22, 2026Updated last month
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:
- ☆928Jul 19, 2026Updated last week
- Conditional compilation according to rustc compiler version☆394Jul 7, 2026Updated 2 weeks ago
- A macro to generate structures which behave like bitflags☆1,144Jul 16, 2026Updated last week
- "Small vector" optimization for Rust: store up to a small number of items on the stack☆1,676Jun 11, 2026Updated last month
- Rust library for single assignment cells and lazy statics without macros☆2,086Mar 12, 2026Updated 4 months ago
- 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.
- The enum Either with variants Left and Right is a general purpose sum type with two cases.☆562May 22, 2026Updated 2 months ago
- Macros for all your token pasting needs☆1,090Oct 6, 2024Updated last year
- Temporary file library for rust☆1,447Updated this week
- A small macro for defining lazy evaluated static variables in Rust.☆2,031Jan 29, 2025Updated last year
- A crate for safe and ergonomic pin-projection.☆715Updated this week
- Rust quasi-quoting☆1,560Jul 19, 2026Updated last week
- A hash table with consistent order and fast iteration; access items by key or sequence index☆2,401Jul 10, 2026Updated 2 weeks ago
- Support for matching file paths against Unix shell style patterns.☆587Updated this week
- Fast floating point to string conversion☆703Jul 12, 2026Updated 2 weeks ago
- 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.
- Backtraces in Rust☆621Jul 9, 2026Updated 2 weeks ago
- Link-time initialization, destruction, scattered data collection macros for Rust☆1,048Updated this week
- Parser and evaluator for Cargo's flavor of Semantic Versioning☆670Jun 24, 2026Updated last month
- Parser for Rust source code☆3,386Updated this week
- A vector with a fixed capacity. (Rust)☆890Jul 19, 2026Updated last week
- Subcommand to show result of macro expansion☆3,116Jul 18, 2026Updated last week
- Some more derive(Trait) options☆2,123Updated this week
- Compile time static maps for Rust☆2,169Updated this week
- Rust library for build scripts to compile C/C++ code into a Rust library☆2,141Updated this week
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Raw bindings to platform APIs for Rust☆2,582Updated this week
- Rust library allowing to register multiple handlers for the same signal☆855Apr 4, 2026Updated 3 months ago
- Tar file reading/writing for Rust☆730Updated this week
- Numeric traits for generic mathematics in Rust☆955Jul 7, 2026Updated 2 weeks ago
- derive(Error) for struct and enum error types☆5,493Jul 18, 2026Updated last week
- Slab allocator for Rust☆918Jan 31, 2026Updated 5 months ago
- A collection of numeric types and traits for Rust.☆1,219Jul 7, 2026Updated 2 weeks ago
- Extra iterator adaptors, iterator methods, free functions, and macros.☆3,148Jul 3, 2026Updated 3 weeks ago
- A fast bump allocation arena for Rust☆2,284Updated 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.
- Compact and efficient synchronization primitives for Rust. Also provides an API for creating custom synchronization primitives.☆3,389Jun 8, 2026Updated last month
- Runtime for executing procedural macros as WebAssembly☆1,519Jul 19, 2026Updated last week
- derive builder implementation for rust structs☆1,539Jan 2, 2026Updated 6 months ago
- Rust port of Google's SwissTable hash map☆2,973Jul 17, 2026Updated last week
- Optimized string search routines for Rust.☆1,513Jul 11, 2026Updated 2 weeks ago
- Type erasure for async trait methods☆2,171Jul 18, 2026Updated last week
- Test harness for ui tests of compiler diagnostics☆976Jul 11, 2026Updated 2 weeks ago