minipaste 0.1.0

A minimal paste macro for Rust
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 6.33 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 116.14 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • MoAlyousef/minipaste
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MoAlyousef

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,
    );
}