5 releases (3 breaking)

Uses old Rust 2015

0.5.1 Jan 1, 2017
0.5.0 Dec 30, 2016
0.4.0 Dec 30, 2016
0.2.0 Dec 26, 2016
0.1.0 Dec 11, 2016

#37 in #thrift

Apache-2.0

145KB
2.5K SLoC

Rust Thrift library

Overview

This crate implements the components required to build a working Thrift server and client. It is divided into the following modules:

  1. errors
  2. protocol
  3. transport
  4. server
  5. autogen

The modules are layered as shown. The generated layer is code generated by the Thrift compiler's Rust plugin. It uses the components defined in this crate to serialize and deserialize types and implement RPC. Users interact with these types and services by writing their own code on top.

+-----------+
|  app dev  |
+-----------+
| generated | <-> errors/results
+-----------+
|  protocol |
+-----------+
| transport |
+-----------+

Using this crate

Add rift = "0.5" to your Cargo.toml.


lib.rs:

Rift: Thrift implementation library for Rust.

This crate implements the components required to build a working Thrift server and client. It is divided into the following modules:

  1. errors
  2. protocol
  3. transport
  4. server
  5. autogen

The modules are layered as shown. The generated layer is code generated by the Thrift compiler's Rust plugin. It uses the components defined in this crate to serialize and deserialize types and implement RPC. Users interact with these types and services by writing their own code on top.

+-----------+
|  app dev  |
+-----------+
| generated | <-> errors/results
+-----------+
|  protocol |
+-----------+
| transport |
+-----------+

Dependencies

~375KB