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 |
|
#16 in #escaping
9,667 downloads per month
Used in 118 crates
(via v_shellescape)
85KB
2K
SLoC
v_escape
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
- Documentation
- Cargo package: v_escape
- Minimum supported Rust version: 1.42 or later
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
~35K SLoC