Skip to content

bumblezhou/rust_test_capnp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple app demo how to use capnp in rust

Prepare

sudo apt update && sudo apt install capnproto -y
capnpc --version
capnp --version

How to build

export OUT_DIR=$(pwd)
cargo build

How to run

[1st terminal]

cargo run server localhost:2000

[2nd terminal]

cargo run client localhost:2000 'Mr Zhou'
cargo run client localhost:2000 'Ms Huang'

Reference:

  1. https://medium.com/@learnwithshobhit/comparing-capn-proto-and-grpc-in-rust-a-performance-and-feature-analysis-61d2da815d18
  2. https://forge.rust-lang.org/infra/other-installation-methods.html#rustup
  3. https://capnproto.org/install.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published