Tokio is a network application framework for rapid development and highly scalable production deployments of clients and servers.
First, add this to your Cargo.toml
:
toml
[dependencies]
tokio-proto = { git = "https://github.com/tokio-rs/tokio-proto" }
Next, add this to your crate:
rust
extern crate tokio_proto;
And then, use Tokio!
If you have questions or need further help getting started, consider joining the chat in our Gitter Channel.
An example of how to implement a client and server with Tokio. The
protocol consists of UTF-8 strings where messages are \n
terminated.
A Tokio HTTP server built on top of Hyper. Full Tokio integration is coming to Hyper in version 0.10.
A basic Redis client built with Tokio.
If you're interested in building with Tokio you may want to check out the following articles:
Tokio is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, and LICENSE-MIT for details.