Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

olix0r/mux-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mux-rust

Build Status

An implementation of the Mux protocol in Rust.

This library includes a Reader and Writer for mux messages. Due to the nature of the Rust language, these APIs are extremely unstable and likely to change.

Building

Use cargo:

$ cargo build

Building in Docker

Build an image with rust-nightly:

$ docker build -t rust-nightly .

Run tests:

$ docker run -t -i --rm=true -v $PWD:/src rust-nightly cargo test

Running examples

Build example server and client:

$ cargo test
...

Run a thread-per-connection server:

$ target/examples/server
serving on 0.0.0.0:6666
-- 127.0.0.1:50047: connected
5730 rps
8627 rps

Run a single-threaded client:

$ target/example/client
-- 127.0.0.1:6666: connected: 127.0.0.1:50047
0 rps
8520 rps
7994 rps

About

An implementation of the Mux protocol in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages