Skip to content

Commit

Permalink
Do publish fluke-io-uring-async
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed May 28, 2024
1 parent 9ba580e commit 1d7be53
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
9 changes: 8 additions & 1 deletion crates/fluke-io-uring-async/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
name = "fluke-io-uring-async"
version = "0.1.0"
edition = "2021"
publish = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/bearcove/fluke"
documentation = "https://docs.rs/fluke-io-uring-async"
readme = "README.md"
description = """
An abstraction on top of io-uring
"""
rust-version = "1.75"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
15 changes: 11 additions & 4 deletions crates/fluke-io-uring-async/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# IoUringAsync (fluke fork)

This is the fluke fork of <https://github.com/thomasbarrett/io-uring-async>

The original README follows.

# IoUringAsync
IoUringAsync is a thin async compatability layer over the commonly used

IoUringAsync is a thin async compatability layer over the commonly used
[io-uring](https://github.com/tokio-rs/io-uring) library that makes it
easier to use with the [Tokio](https://github.com/tokio-rs/tokio) runtime.

Expand Down Expand Up @@ -37,7 +44,7 @@ fn main() {
let runtime = tokio::runtime::Builder::new_current_thread().
on_thread_park(move || { uring_clone.submit().unwrap(); }).
enable_all().
build().unwrap();
build().unwrap();

runtime.block_on(async move {
tokio::task::LocalSet::new().run_until(async {
Expand All @@ -46,8 +53,8 @@ fn main() {
tokio::task::spawn_local(IoUringAsync::listen(uring.clone()));

let cqe = uring.push(Nop::new().build()).await;
assert!(cqe.result() >= 0, "nop error: {}", cqe.result());
}).await;
assert!(cqe.result() >= 0, "nop error: {}", cqe.result());
}).await;
});
}
```

0 comments on commit 1d7be53

Please sign in to comment.