Skip to content

mezeipetister/rust_thrift_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo RUST Apache Thrift test project

  1. cargo build
  2. ./target/debug/server
  3. ./target/debug/client

Start server

./target/debug/server

Server response

binding to 127.0.0.1:9000

Start client

./target/debug/client

Client response

Hello Allen!
client ran successfully

Install Thrift 0.11.0 on Mac OSX

I tried several way to install the latest Thrift, but none was successful. Thrift ^0.11.0 is required for Rust support.

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/thrift.rb

Then we can use the thrift build command

thrift --out src --gen rs simple_service.thrift

This will generate the /src/simple_service.rs file.

About

Demo project, running rust using Apache Thrift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published