rust-lang / cfg-ifView external linksLinks
A if/elif-like macro for Rust #[cfg] statements
☆629Nov 26, 2025Updated 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
Sorting:
- ☆902Updated this week
- Macros for all your token pasting needs☆1,077Oct 6, 2024Updated last year
- Conditional compilation according to rustc compiler version☆389Updated this week
- A macro to generate structures which behave like bitflags☆1,101Dec 9, 2025Updated 2 months ago
- Rust library for single assignment cells and lazy statics without macros☆2,057May 24, 2025Updated 8 months ago
- "Small vector" optimization for Rust: store up to a small number of items on the stack☆1,608Feb 3, 2026Updated last week
- Temporary file library for rust☆1,397Jan 15, 2026Updated 3 weeks ago
- A crate for safe and ergonomic pin-projection.☆702Updated this week
- A small macro for defining lazy evaluated static variables in Rust.☆2,028Jan 29, 2025Updated last year
- The enum Either with variants Left and Right is a general purpose sum type with two cases.☆546Nov 4, 2025Updated 3 months ago
- Rust quasi-quoting☆1,525Updated this week
- Parser for Rust source code☆3,283Feb 7, 2026Updated last week
- A hash table with consistent order and fast iteration; access items by key or sequence index☆2,292Jan 7, 2026Updated last month
- Support for matching file paths against Unix shell style patterns.☆567Dec 2, 2025Updated 2 months ago
- Module initialization/global constructor functions for Rust☆954Dec 4, 2025Updated 2 months ago
- Some more derive(Trait) options☆2,068Feb 4, 2026Updated last week
- Subcommand to show result of macro expansion☆3,029Feb 5, 2026Updated last week
- Fast floating point to string conversion☆690Feb 3, 2026Updated last week
- Tar file reading/writing for Rust☆704Jan 23, 2026Updated 3 weeks ago
- Raw bindings to platform APIs for Rust☆2,484Updated this week
- A port of MUSL's libm to Rust.☆637Apr 20, 2025Updated 9 months ago
- Rust library for build scripts to compile C/C++ code into a Rust library☆2,088Jan 30, 2026Updated 2 weeks ago
- Extra iterator adaptors, iterator methods, free functions, and macros.☆3,089Jan 12, 2026Updated last month
- Type erasure for async trait methods☆2,114Updated this week
- derive(Error) for struct and enum error types☆5,338Updated this week
- A fast bump allocation arena for Rust☆2,096Jan 12, 2026Updated last month
- Numeric traits for generic mathematics in Rust☆914Jun 17, 2025Updated 7 months ago
- Compile time static maps for Rust☆2,100Feb 4, 2026Updated last week
- Backtraces in Rust☆605Jan 25, 2026Updated 2 weeks ago
- Runtime for executing procedural macros as WebAssembly☆1,469Jan 21, 2026Updated 3 weeks ago
- Rust library allowing to register multiple handlers for the same signal☆830Feb 3, 2026Updated last week
- Parser and evaluator for Cargo's flavor of Semantic Versioning☆656Dec 20, 2025Updated last month
- Slab allocator for Rust☆875Jan 31, 2026Updated last week
- Rust port of Google's SwissTable hash map☆2,864Feb 5, 2026Updated last week
- derive builder implementation for rust structs☆1,529Jan 2, 2026Updated last month
- A string type for Rust that is not required to be valid UTF-8.☆1,030Oct 26, 2025Updated 3 months ago
- Test harness for ui tests of compiler diagnostics☆950Jan 30, 2026Updated 2 weeks ago
- A collection of numeric types and traits for Rust.☆1,196Jan 25, 2025Updated last year
- Compact and efficient synchronization primitives for Rust. Also provides an API for creating custom synchronization primitives.☆3,267Dec 29, 2025Updated last month