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

#444 in Hardware support

Download history 2514/week @ 2024-10-29 2012/week @ 2024-11-05 1430/week @ 2024-11-12 1785/week @ 2024-11-19 2412/week @ 2024-11-26 2506/week @ 2024-12-03 3584/week @ 2024-12-10 2772/week @ 2024-12-17 1188/week @ 2024-12-24 2020/week @ 2024-12-31 2648/week @ 2025-01-07 4365/week @ 2025-01-14 3023/week @ 2025-01-21 2883/week @ 2025-01-28 7901/week @ 2025-02-04 3420/week @ 2025-02-11

17,808 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