#escaping #simd #derive #proc-macro

macro v_escape_derive

Procedural macro package for v_escape

23 releases

0.9.1 Oct 12, 2021
0.8.5 Oct 11, 2021
0.8.4 Oct 11, 2020
0.8.1 Jun 22, 2020
0.2.1 Dec 27, 2018

#122 in #escaping

Download history 3087/week @ 2024-07-22 2858/week @ 2024-07-29 2259/week @ 2024-08-05 3575/week @ 2024-08-12 2288/week @ 2024-08-19 3130/week @ 2024-08-26 2678/week @ 2024-09-02 2389/week @ 2024-09-09 2520/week @ 2024-09-16 3102/week @ 2024-09-23 2730/week @ 2024-09-30 1454/week @ 2024-10-07 2446/week @ 2024-10-14 2177/week @ 2024-10-21 2571/week @ 2024-10-28 2020/week @ 2024-11-04

9,252 downloads per month
Used in 118 crates (via v_escape)

MIT/Apache

28KB
769 lines

v_escape Documentation Latest version

The simd optimized escape code

Crate v_escape provides a macro new_escape! that define a escaping functionalities. These macros are optimized using simd by default, but this can be altered using sub-attributes.

Documentation

Example

v_escape::new!(MyEscape; '<' -> "bar");

fn main() {
    let s = "foo<bar";
    
    print!("{}", MyEscape::from(s));
    assert_eq!(MyEscape::from(s).to_string(), "foobarbar");
}

Dependencies

~1.5MB
~37K SLoC