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

#139 in #escaping

Download history 1615/week @ 2024-11-16 2451/week @ 2024-11-23 2389/week @ 2024-11-30 2979/week @ 2024-12-07 3535/week @ 2024-12-14 1688/week @ 2024-12-21 972/week @ 2024-12-28 2655/week @ 2025-01-04 4518/week @ 2025-01-11 3268/week @ 2025-01-18 2270/week @ 2025-01-25 6317/week @ 2025-02-01 4851/week @ 2025-02-08 2326/week @ 2025-02-15 4474/week @ 2025-02-22 3008/week @ 2025-03-01

15,808 downloads per month
Used in 117 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