#macro #paste

macro minipaste

A minimal paste macro for Rust

1 unstable release

0.1.0 Oct 18, 2025

#1701 in Procedural macros

Download history 7880/week @ 2025-10-26 5684/week @ 2025-11-02 4927/week @ 2025-11-09 8706/week @ 2025-11-16 10412/week @ 2025-11-23 8234/week @ 2025-11-30 5032/week @ 2025-12-07 5228/week @ 2025-12-14 4663/week @ 2025-12-21 5248/week @ 2025-12-28 2369/week @ 2026-01-04 2722/week @ 2026-01-11 2434/week @ 2026-01-18 2320/week @ 2026-01-25 2395/week @ 2026-02-01 2581/week @ 2026-02-08

9,987 downloads per month
Used in 74 crates (via fltk)

MIT license

5KB
58 lines

minipaste

A minimalist alternative to the paste crate, which is no longer maintained and may flag a cargo audit/vet warning. It does not handle case conversion! Usage is similar to the paste crate:

minipaste = "0.1"
use minipaste::paste;
paste! {
    // Defines a const called `QRST`.
    const [<Q R S T>]: &str = "success!";
}

fn main() {
    assert_eq!(
        paste! { [<Q R S T>].len() },
        8,
    );
}

Dependencies

~49KB