Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

Commit fd6efdd

Browse files
committed
feat: rename smol to futures
1 parent 102a4d7 commit fd6efdd

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/ci_test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
toolchain: ['stable']
2525
setup:
2626
- os: 'ubuntu-22.04'
27-
features: 'tokio,futures,smol,io-uring'
27+
features: 'tokio,futures,io-uring'
2828
- os: 'ubuntu-22.04'
29-
features: 'tokio,futures,smol,polling'
29+
features: 'tokio,futures,polling'
3030
- os: 'windows-latest'
31-
features: 'tokio,futures,smol'
31+
features: 'tokio,futures'
3232
- os: 'macos-15'
33-
features: 'tokio,futures,smol'
33+
features: 'tokio,futures'
3434
steps:
3535
- uses: actions/checkout@v6
3636
- name: Setup Rust Toolchain

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ futures-executor = { workspace = true }
5252
io-uring = ["compio/io-uring"]
5353
polling = ["compio/polling"]
5454
tokio = ["dep:tokio"]
55-
smol = ["dep:async-io", "dep:futures-util"]
55+
futures = ["dep:async-io", "dep:futures-util"]
5656
enable_log = ["compio-log/enable_log"]
5757

5858
[patch.crates-io]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ use futures_util::FutureExt;
66

77
use crate::{Adapter, sys::unix::UnixAdapter};
88

9-
pub struct SmolAdapter(Async<UnixAdapter>);
9+
pub struct FuturesAdapter(Async<UnixAdapter>);
1010

11-
impl Adapter for SmolAdapter {
11+
impl Adapter for FuturesAdapter {
1212
fn new(runtime: Runtime) -> io::Result<Self> {
1313
Ok(Self(Async::new_nonblocking(UnixAdapter::new(runtime)?)?))
1414
}
@@ -31,7 +31,7 @@ impl Adapter for SmolAdapter {
3131
}
3232
}
3333

34-
impl Deref for SmolAdapter {
34+
impl Deref for FuturesAdapter {
3535
type Target = Runtime;
3636

3737
fn deref(&self) -> &Self::Target {

src/sys/unix/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use mod_use::mod_use;
1212
#[cfg(feature = "tokio")]
1313
mod_use![tokio];
1414

15-
#[cfg(feature = "smol")]
16-
mod_use![smol];
15+
#[cfg(feature = "futures")]
16+
mod_use![futures];
1717

1818
struct UnixAdapter {
1919
runtime: Runtime,

src/sys/windows.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,5 @@ macro_rules! impl_adapter {
9393
#[cfg(feature = "tokio")]
9494
impl_adapter!(TokioAdapter);
9595

96-
#[cfg(feature = "smol")]
97-
impl_adapter!(SmolAdapter);
96+
#[cfg(feature = "futures")]
97+
impl_adapter!(FuturesAdapter);

tests/fs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ async fn tokio() {
2727
test_impl::<compio_compat::TokioAdapter>().await;
2828
}
2929

30-
#[cfg(feature = "smol")]
30+
#[cfg(feature = "futures")]
3131
#[test]
32-
fn smol() {
32+
fn futures() {
3333
futures_executor::block_on(async {
34-
test_impl::<compio_compat::SmolAdapter>().await;
34+
test_impl::<compio_compat::FuturesAdapter>().await;
3535
})
3636
}

0 commit comments

Comments
 (0)