Skip to content

Commit

Permalink
feat: finish basic read op
Browse files Browse the repository at this point in the history
Signed-off-by: lzzzt <liuzitao0123@gmail.com>

ci: enable CI run test with legacy + sync

Signed-off-by: lzzzt <liuzitao0123@gmail.com>
  • Loading branch information
Lzzzzzt committed Sep 20, 2024
1 parent 687f921 commit da39670
Show file tree
Hide file tree
Showing 12 changed files with 682 additions and 225 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ if [ "${NO_RUN}" != "1" ] && [ "${NO_RUN}" != "true" ]; then
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,legacy,macros,utils"
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,legacy,macros,utils" --release

# enable legacy and sync
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,legacy,macros,utils,asyncify-op"
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,legacy,macros,utils,asyncify-op" --release

if [ "${TARGET}" = "x86_64-unknown-linux-gnu" ] || [ "${TARGET}" = "i686-unknown-linux-gnu" ]; then
# only enabled uring driver
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,iouring,macros,utils"
Expand Down
4 changes: 3 additions & 1 deletion monoio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ windows-sys = { version = "0.48.0", features = [
"Win32_Networking_WinSock",
"Win32_System_IO",
"Win32_Storage_FileSystem",
"Win32_Security"
"Win32_Security",
] }

# unix dependencies
Expand Down Expand Up @@ -96,6 +96,8 @@ poll-io = ["tokio", "mio"]
# signal enables setting ctrl_c handler
signal = ["ctrlc", "sync"]
signal-termination = ["signal", "ctrlc/termination"]
# asyncify-op will run fs related task in blocking_thread_pool
asyncify-op = ["sync", "legacy"]
# by default both iouring and legacy are enabled
default = ["async-cancel", "bytes", "iouring", "legacy", "macros", "utils"]

Expand Down
2 changes: 1 addition & 1 deletion monoio/src/driver/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ use std::{
use crate::driver;

pub(crate) mod close;
pub(crate) mod read;

mod accept;
mod connect;
mod fsync;
mod open;
mod poll;
mod read;
mod recv;
mod send;
mod write;
Expand Down
Loading

0 comments on commit da39670

Please sign in to comment.