A if/elif-like macro for Rust #[cfg] statements
☆637Nov 26, 2025Updated 6 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:
- ☆918Apr 19, 2026Updated last month
- Conditional compilation according to rustc compiler version☆394Mar 24, 2026Updated 2 months ago
- A macro to generate structures which behave like bitflags☆1,132Apr 14, 2026Updated last month
- "Small vector" optimization for Rust: store up to a small number of items on the stack☆1,644Apr 15, 2026Updated last month
- The enum Either with variants Left and Right is a general purpose sum type with two cases.☆553Updated this 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.
- Rust library for single assignment cells and lazy statics without macros☆2,085Mar 12, 2026Updated 2 months ago
- Macros for all your token pasting needs☆1,088Oct 6, 2024Updated last year
- Temporary file library for rust☆1,431May 7, 2026Updated 2 weeks ago
- A small macro for defining lazy evaluated static variables in Rust.☆2,029Jan 29, 2025Updated last year
- A crate for safe and ergonomic pin-projection.☆710May 13, 2026Updated last week
- Rust quasi-quoting☆1,543Mar 25, 2026Updated 2 months ago
- A hash table with consistent order and fast iteration; access items by key or sequence index☆2,366May 2, 2026Updated 3 weeks ago
- Backtraces in Rust☆612Jan 25, 2026Updated 4 months ago
- Support for matching file paths against Unix shell style patterns.☆580Dec 2, 2025Updated 5 months ago
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Fast floating point to string conversion☆696Feb 16, 2026Updated 3 months ago
- Link-time initialization, destruction, scattered data collection macros for Rust☆1,002Updated this week
- Parser and evaluator for Cargo's flavor of Semantic Versioning☆663May 18, 2026Updated last week
- Parser for Rust source code☆3,321May 18, 2026Updated last week
- A vector with a fixed capacity. (Rust)☆872May 3, 2026Updated 3 weeks ago
- Subcommand to show result of macro expansion☆3,078May 18, 2026Updated last week
- Some more derive(Trait) options☆2,106May 9, 2026Updated 2 weeks ago
- Rust library allowing to register multiple handlers for the same signal☆852Apr 4, 2026Updated last month
- Compile time static maps for Rust☆2,145Updated this week
- Open source password manager - Proton Pass • AdSecurely store, share, and autofill your credentials with Proton Pass, the end-to-end encrypted password manager trusted by millions.
- Rust library for build scripts to compile C/C++ code into a Rust library☆2,122Updated this week
- Numeric traits for generic mathematics in Rust☆938Jun 17, 2025Updated 11 months ago
- Tar file reading/writing for Rust☆718May 18, 2026Updated last week
- Raw bindings to platform APIs for Rust☆2,549May 19, 2026Updated last week
- derive(Error) for struct and enum error types☆5,425Mar 24, 2026Updated 2 months ago
- Slab allocator for Rust☆894Jan 31, 2026Updated 3 months ago
- Optimized string search routines for Rust.☆1,451Updated this week
- Extra iterator adaptors, iterator methods, free functions, and macros.☆3,122Updated this week
- A fast bump allocation arena for Rust☆2,207Apr 27, 2026Updated 3 weeks ago
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- A collection of numeric types and traits for Rust.☆1,211Jan 25, 2025Updated last year
- Compact and efficient synchronization primitives for Rust. Also provides an API for creating custom synchronization primitives.☆3,344Feb 21, 2026Updated 3 months ago
- Rust port of Google's SwissTable hash map☆2,922May 9, 2026Updated 2 weeks ago
- Runtime for executing procedural macros as WebAssembly☆1,497Jan 21, 2026Updated 4 months ago
- derive builder implementation for rust structs☆1,537Jan 2, 2026Updated 4 months ago
- Test harness for ui tests of compiler diagnostics☆970Mar 25, 2026Updated 2 months ago
- Type erasure for async trait methods☆2,153Mar 24, 2026Updated 2 months ago