| Crates.io | minipaste |
| lib.rs | minipaste |
| version | 0.1.0 |
| created_at | 2025-10-18 20:56:54.436393+00 |
| updated_at | 2025-10-18 20:56:54.436393+00 |
| description | A minimal paste macro for Rust |
| homepage | |
| repository | https://github.com/MoAlyousef/minipaste |
| max_upload_size | |
| id | 1889637 |
| size | 6,339 |
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,
);
}