encoder 0.2.4

Blazing fast encoder written in Rust
Documentation
1
2
3
4
5
6
7
8
use encoder::json::Encode;

fn main() {
    let mut buf = vec![];
    "Hello, δΈ–η•Œ! πŸ‘‹".encode(&mut buf);
    assert_eq!(String::from_utf8_lossy(&buf), r#""Hello, δΈ–η•Œ! πŸ‘‹""#);
    assert_eq!("Hello, δΈ–η•Œ! πŸ‘‹".stringify(), r#""Hello, δΈ–η•Œ! πŸ‘‹""#);
}