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

#440 in Hardware support

Download history 3549/week @ 2024-08-12 2265/week @ 2024-08-19 3109/week @ 2024-08-26 2680/week @ 2024-09-02 2417/week @ 2024-09-09 2508/week @ 2024-09-16 3113/week @ 2024-09-23 2764/week @ 2024-09-30 1451/week @ 2024-10-07 2443/week @ 2024-10-14 2181/week @ 2024-10-21 2581/week @ 2024-10-28 2146/week @ 2024-11-04 1445/week @ 2024-11-11 1603/week @ 2024-11-18 2396/week @ 2024-11-25

7,816 downloads per month
Used in 117 crates (via v_shellescape)

MIT/Apache

85KB
2K 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

~1.5MB
~37K SLoC