2 releases

0.1.11 Apr 21, 2020
0.1.10 Apr 21, 2020

#15 in #reason

Download history 929/week @ 2024-07-26 1209/week @ 2024-08-02 783/week @ 2024-08-09 943/week @ 2024-08-16 659/week @ 2024-08-23 1349/week @ 2024-08-30 1668/week @ 2024-09-06 1534/week @ 2024-09-13 1954/week @ 2024-09-20 1059/week @ 2024-09-27 354/week @ 2024-10-04 228/week @ 2024-10-11 147/week @ 2024-10-18 279/week @ 2024-10-25 406/week @ 2024-11-01 103/week @ 2024-11-08

963 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