Crates.io | mio-st |
lib.rs | mio-st |
version | 0.2.3 |
source | src |
created_at | 2018-09-14 11:11:35.548469 |
updated_at | 2019-03-02 23:28:19.376579 |
description | Single threaded, lightweight non-blocking IO |
homepage | https://github.com/Thomasdezeeuw/mio-st |
repository | https://github.com/Thomasdezeeuw/mio-st |
max_upload_size | |
id | 84684 |
size | 141,990 |
This is a fork of mio (v0.6.12, commit 4a716d0b687592368d9e283a6ea63aedb5877fc8), changed to run on a single thread.
Rust version 1.31 or higher is required as mio-st makes use of Rust 2018 edition features.
The main two differences compared to mio are:
The goal of this crate was to reduce the overhead of locks and/or atomic
operations, at the cost of not supporting multiple threads. This means the usage
of this crates, compared to mio, changes to using a single Poll
instance per
thread. Where when using mio you might use a single Poll
instance for the
entire application.
When reworking the code Windows support was removed because the underlying polling technique provided by the OS differs too much from epoll and kqueue. Carl Lerche (@carllerche, the auther of mio) did an amazing job of supporting Windows, but I have no interest in supporting Windows (I simply don't use it).
The following platforms are supported:
The following platforms should work, as in the code compiles:
FreeBSD,
NetBSD, and
OpenBSD.
The API documentation is available on docs.rs.
Licensed under the MIT license (LICENSE or https://opensource.org/licenses/MIT).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.