- cargo build
- ./target/debug/server
- ./target/debug/client
Start server
./target/debug/serverServer response
binding to 127.0.0.1:9000Start client
./target/debug/clientClient response
Hello Allen!
client ran successfullyI 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.rbThen we can use the thrift build command
thrift --out src --gen rs simple_service.thriftThis will generate the /src/simple_service.rs file.