leviticus 0.0.1

Leviticus is a suite of tools which help developers build robust and maintainable applications across platforms, languages, frameworks, and runtimes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub async fn status() {
    let mut stream = tokio::net::TcpStream::connect("127.0.0.1:7788")
        .await
        .unwrap();

    tokio::io::AsyncWriteExt::write_all(&mut stream, b"status")
        .await
        .unwrap();

    let mut buf = vec![];

    tokio::io::AsyncReadExt::read_to_end(&mut stream, &mut buf)
        .await
        .unwrap();

    println!("{}", String::from_utf8_lossy(&buf));
}