15 releases (2 stable)
| 1.4.1 | Sep 10, 2024 |
|---|---|
| 1.2.1 |
|
| 0.5.2 | Jan 28, 2024 |
| 0.5.0 | Dec 3, 2023 |
| 0.4.0 | Apr 26, 2023 |
#608 in HTTP server
34 downloads per month
Used in 10 crates
(9 directly)
18KB
557 lines
macros-rs
macros-rs is a simple, lightweight, and useful library for miscellaneous macros.
Getting Started
To get started check out the docs on docs.rs!
// main.rs
use macros_rs::{exp::ternary, fmt::fmtstr};
fn main() {
let value = true;
let hello = "hello";
println!("{:?} world", ternary!(value, fmtstr!("{hello}"), ""));
}
$ cargo run
Compiling project (/crates)
Finished build [unoptimized + debuginfo] target(s)
"hello" world
Dependencies
~0–12MB
~104K SLoC