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

#489 in Hardware support

Download history 1604/week @ 2024-11-17 2420/week @ 2024-11-24 2487/week @ 2024-12-01 3150/week @ 2024-12-08 3377/week @ 2024-12-15 1456/week @ 2024-12-22 1137/week @ 2024-12-29 2946/week @ 2025-01-05 4129/week @ 2025-01-12 3639/week @ 2025-01-19 2262/week @ 2025-01-26 6919/week @ 2025-02-02 4558/week @ 2025-02-09 2193/week @ 2025-02-16 4526/week @ 2025-02-23 2988/week @ 2025-03-02

15,234 downloads per month
Used in 116 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
~38K SLoC