2 releases

0.1.11 Apr 21, 2020
0.1.10 Apr 21, 2020

#25 in #simpler

Download history 1210/week @ 2023-12-17 350/week @ 2023-12-24 717/week @ 2023-12-31 1000/week @ 2024-01-07 1253/week @ 2024-01-14 1638/week @ 2024-01-21 1239/week @ 2024-01-28 979/week @ 2024-02-04 2528/week @ 2024-02-11 2107/week @ 2024-02-18 1337/week @ 2024-02-25 1259/week @ 2024-03-03 1327/week @ 2024-03-10 1035/week @ 2024-03-17 958/week @ 2024-03-24 1008/week @ 2024-03-31

4,382 downloads per month
Used in 3 crates (via mini_paste)

Zlib license

8KB
182 lines

UPDATE: the current version of paste is actually just as quick to compile as this one (and it has been that way for more than a year, now), and has more features! There is thus no meaningful reason to be using this crate anymore. The simpler implementation, however, could still be useful for those interested in understanding how the core functionality of paste can be implemented.

::mini_paste

Like ::paste (MIT / Apache licensed), but without any dependency on ::syn nor ::quote, for (significantly) fast(er) compile-from-scratch times.

  • It does not, however, currently offer the fancier features of case conversion that ::paste does:

    When in doubt, do use ::paste instead.

    • Only use ::mini_paste when the compile-from-scratch time matters to you.

Seamlessly replacing ::paste with ::mini_paste

You can achieve that with the following line in your Cargo.toml:

[dependencies]
paste = { version = "0.1.0", package = "mini_paste" }

This will mock / shadow ::paste so that all the ::paste::item! and ::paste::expr! macro calls Just Work.

No runtime deps