#derive #escaping #simd

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

#89 in Rust patterns

Download history 6613/week @ 2021-07-07 6589/week @ 2021-07-14 6460/week @ 2021-07-21 6952/week @ 2021-07-28 6240/week @ 2021-08-04 5855/week @ 2021-08-11 5459/week @ 2021-08-18 6874/week @ 2021-08-25 5168/week @ 2021-09-01 6416/week @ 2021-09-08 7216/week @ 2021-09-15 7023/week @ 2021-09-22 7404/week @ 2021-09-29 7469/week @ 2021-10-06 7827/week @ 2021-10-13 6132/week @ 2021-10-20

27,435 downloads per month
Used in 140 crates (via v_escape)

MIT/Apache

27KB
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

~290–690KB
~17K SLoC