A if/elif-like macro for Rust #[cfg] statements
☆635Nov 26, 2025Updated 4 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:
- ☆910Feb 16, 2026Updated last month
- Conditional compilation according to rustc compiler version☆394Feb 16, 2026Updated last month
- A macro to generate structures which behave like bitflags☆1,119Mar 14, 2026Updated last week
- "Small vector" optimization for Rust: store up to a small number of items on the stack☆1,632Feb 16, 2026Updated last month
- The enum Either with variants Left and Right is a general purpose sum type with two cases.☆551Nov 4, 2025Updated 4 months ago
- 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,070Mar 12, 2026Updated 2 weeks ago
- Macros for all your token pasting needs☆1,082Oct 6, 2024Updated last year
- Temporary file library for rust☆1,414Mar 14, 2026Updated last week
- A small macro for defining lazy evaluated static variables in Rust.☆2,028Jan 29, 2025Updated last year
- A crate for safe and ergonomic pin-projection.☆704Mar 12, 2026Updated 2 weeks ago
- Rust quasi-quoting☆1,530Mar 3, 2026Updated 3 weeks ago
- A hash table with consistent order and fast iteration; access items by key or sequence index☆2,316Jan 7, 2026Updated 2 months ago
- Backtraces in Rust☆607Jan 25, 2026Updated 2 months ago
- Support for matching file paths against Unix shell style patterns.☆573Dec 2, 2025Updated 3 months ago
- DigitalOcean Gradient AI Platform • AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- Fast floating point to string conversion☆692Feb 16, 2026Updated last month
- Parser and evaluator for Cargo's flavor of Semantic Versioning☆661Feb 16, 2026Updated last month
- Parser for Rust source code☆3,303Updated this week
- A vector with a fixed capacity. (Rust)☆857Oct 19, 2024Updated last year
- Module initialization/global constructor functions for Rust☆963Dec 4, 2025Updated 3 months ago
- Subcommand to show result of macro expansion☆3,051Feb 12, 2026Updated last month
- Some more derive(Trait) options☆2,086Mar 6, 2026Updated 3 weeks ago
- Rust library allowing to register multiple handlers for the same signal☆842Feb 14, 2026Updated last month
- Compile time static maps for Rust☆2,112Mar 12, 2026Updated 2 weeks ago
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Rust library for build scripts to compile C/C++ code into a Rust library☆2,104Mar 16, 2026Updated last week
- Tar file reading/writing for Rust☆708Mar 20, 2026Updated last week
- Numeric traits for generic mathematics in Rust☆922Jun 17, 2025Updated 9 months ago
- derive(Error) for struct and enum error types☆5,383Updated this week
- Slab allocator for Rust☆886Jan 31, 2026Updated last month
- Raw bindings to platform APIs for Rust☆2,508Mar 19, 2026Updated last week
- A fast bump allocation arena for Rust☆2,147Feb 26, 2026Updated last month
- Extra iterator adaptors, iterator methods, free functions, and macros.☆3,107Feb 20, 2026Updated last month
- A collection of numeric types and traits for Rust.☆1,199Jan 25, 2025Updated last year
- Proton VPN Special Offer - Get 70% off • AdSpecial partner offer. Trusted by over 100 million users worldwide. Tested, Approved and Recommended by Experts.
- Optimized string search routines for Rust.☆1,398Feb 12, 2026Updated last month
- Compact and efficient synchronization primitives for Rust. Also provides an API for creating custom synchronization primitives.☆3,300Feb 21, 2026Updated last month
- Rust port of Google's SwissTable hash map☆2,889Mar 7, 2026Updated 2 weeks ago
- Runtime for executing procedural macros as WebAssembly☆1,481Jan 21, 2026Updated 2 months ago
- derive builder implementation for rust structs☆1,536Jan 2, 2026Updated 2 months ago
- Test harness for ui tests of compiler diagnostics☆960Updated this week
- Type erasure for async trait methods☆2,133Feb 16, 2026Updated last month