33 releases

0.18.0 Oct 12, 2021
0.16.1 Jun 2, 2021
0.16.0 Feb 23, 2021
0.15.0 Dec 21, 2020
0.1.4 Nov 29, 2018

#296 in Hardware support

Download history 6650/week @ 2021-07-03 7042/week @ 2021-07-10 6641/week @ 2021-07-17 7117/week @ 2021-07-24 6445/week @ 2021-07-31 6727/week @ 2021-08-07 5672/week @ 2021-08-14 6712/week @ 2021-08-21 6441/week @ 2021-08-28 5728/week @ 2021-09-04 7246/week @ 2021-09-11 7518/week @ 2021-09-18 7679/week @ 2021-09-25 7712/week @ 2021-10-02 7702/week @ 2021-10-09 6738/week @ 2021-10-16

28,751 downloads per month
Used in 139 crates (4 directly)

MIT/Apache

110KB
2.5K SLoC

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

~300–700KB
~18K SLoC