tag | 43cd09119b71d65938d2e407a9e14ec46e18112f | |
---|---|---|
tagger | Alex Crichton <alex@alexcrichton.com> | Mon Dec 19 00:37:39 2016 -0800 |
object | b9f7808f6e56aef94e7f19fb0c16871c4aeb6232 |
Version 0.1.2 * Handle `EPOLLHUP` on Linux like `EPOLLIN`, also registering interested in hup events. * Add `TcpListener::accept` * Initialize slabs with capacity of one for less memory consumption on creation of a `Core`. * Add some trait impls to `EasyBuf`
commit | b9f7808f6e56aef94e7f19fb0c16871c4aeb6232 | [log] [tgz] |
---|---|---|
author | Alex Crichton <alex@alexcrichton.com> | Mon Dec 19 00:35:57 2016 -0800 |
committer | Alex Crichton <alex@alexcrichton.com> | Mon Dec 19 00:37:27 2016 -0800 |
tree | 487affc2bceb2c7e78ce898b2bcc3bcff6f4c4af | |
parent | 0588204048f7562b9f31dc4bd5afba19bd5c7f69 [diff] |
Bump to 0.1.2
Core I/O and event loop abstraction for asynchronous I/O in Rust built on futures
and mio
.
First, add this to your Cargo.toml
:
[dependencies] tokio-core = "0.1"
Next, add this to your crate:
extern crate tokio_core;
There are a few small examples showing off how to use this library:
This crate is a connection between futures
, a zero-cost implementation of futures in Rust, and mio
, a crate for zero-cost asynchronous I/O. The types and structures implemented in tokio-core
implement Future
and Stream
traits as appropriate. For example, connecting a TCP stream returns a Future
resolving to a TCP stream, and a TCP listener implements a stream of TCP streams (accepted connections).
This crate also provides facilities such as:
Executor
implementation for a futures' Task
The intention of tokio-core
is to provide a concrete implementation for crates built on top of asynchronous I/O. For example you can easily turn a TCP stream into a TLS/SSL stream with the tokio-tls
crate or use the combinators to compose working with data on sockets.
Check out the documentation for more information, and more coming here soon!
tokio-core
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.