#thrift #server #async #processor

thrift-async

Almost asynchronous Thrift server implementation

3 unstable releases

0.2.1 Dec 24, 2018
0.2.0 Dec 24, 2018
0.1.0 Dec 11, 2018

#41 in #thrift

MIT license

15KB
250 lines

Rust thrift-async

Almost asynchronous Thrift server implementation using tokio.


lib.rs:

thrift_async

Half-asynchrounous, half-synchrounous implementation of an Apache Thrift server.

This crate is fully compatible with the thrift crate.

Example usage:

use thrift_async::TAsyncServer;

fn main() {
    let processor = <some TProcessor>;

    TAsyncServer::new(processor)
        .listen("127.0.0.1:8080")
        .unwrap() // panic on failure
}

Dependencies

~4MB
~60K SLoC