Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ libc = "0.2"

# Other platform dependencies
[target.'cfg(all(not(target_os = "linux"), unix))'.dependencies]
mio = { version = "0.8", features = ["os-ext"] }
polling = "3"
libc = "0.2"

[features]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![docs.rs](https://img.shields.io/badge/docs.rs-compio-latest)](https://docs.rs/compio)
[![Azure DevOps builds](https://strawberry-vs.visualstudio.com/compio/_apis/build/status/Berrysoft.compio?branch=master)](https://strawberry-vs.visualstudio.com/compio/_build)

A thread-per-core Rust runtime with IOCP/io_uring/mio.
A thread-per-core Rust runtime with IOCP/io_uring/polling.
The name comes from "completion-based IO".
This crate is inspired by [monoio](https://github.com/bytedance/monoio/).

Expand Down
229 changes: 0 additions & 229 deletions src/driver/mio/mod.rs

This file was deleted.

6 changes: 3 additions & 3 deletions src/driver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ cfg_if::cfg_if! {
mod iour;
pub use iour::*;
} else if #[cfg(unix)]{
mod mio;
pub use self::mio::*;
mod poll;
pub use poll::*;
}
}

Expand Down Expand Up @@ -118,7 +118,7 @@ impl Proactor {
/// attached to one driver, and could only be attached once, even if you
/// `try_clone` it. It will cause unexpected result to attach the handle
/// with one driver and push an op to another driver.
/// * io-uring/mio: it will do nothing and return `Ok(())`
/// * io-uring/polling: it will do nothing and return `Ok(())`.
pub fn attach(&mut self, fd: RawFd) -> io::Result<()> {
self.driver.attach(fd)
}
Expand Down
Loading