#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

#118 in #escaping

Download history 2982/week @ 2023-12-06 3673/week @ 2023-12-13 2775/week @ 2023-12-20 1906/week @ 2023-12-27 2572/week @ 2024-01-03 3306/week @ 2024-01-10 3219/week @ 2024-01-17 2826/week @ 2024-01-24 2356/week @ 2024-01-31 3141/week @ 2024-02-07 3320/week @ 2024-02-14 3817/week @ 2024-02-21 4094/week @ 2024-02-28 4027/week @ 2024-03-06 3275/week @ 2024-03-13 2868/week @ 2024-03-20

14,984 downloads per month
Used in 121 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
~34K SLoC