fs: use the Cargo feature for io-uring support instead of cfg (#7621)

Co-authored-by: Emile Fugulin <[email protected]>
This commit is contained in:
Motoyuki Kimura
2025-09-19 23:22:44 +08:00
committed by GitHub
co-authored by Emile Fugulin
parent 2af3e4430a
commit 3b5a15dfdf
14 changed files with 207 additions and 114 deletions
@@ -44,8 +44,8 @@ jobs:
run: |
# Build both integration (tokio/tests/) and unit (e.g., tokio/src/fs/file/tests.rs) tests with io_uring enabled
rustup target add x86_64-unknown-linux-musl
RUSTFLAGS="--cfg tokio_uring" \
cargo test -p tokio --features full \
RUSTFLAGS="--cfg tokio_unstable" \
cargo test -p tokio --features full,io-uring \
--target x86_64-unknown-linux-musl --test 'fs*' --lib --no-run
- name: Prepare initramfs + tests binaries