minipaste

Crates.iominipaste
lib.rsminipaste
version0.1.0
created_at2025-10-18 20:56:54.436393+00
updated_at2025-10-18 20:56:54.436393+00
descriptionA minimal paste macro for Rust
homepage
repositoryhttps://github.com/MoAlyousef/minipaste
max_upload_size
id1889637
size6,339
Mohammed Alyousef (MoAlyousef)

documentation

https://docs.rs/minipaste

README

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,
    );
}
Commit count: 0

cargo fmt