Skip to content

Commit fb3f254

Browse files
Sqlx-core: rename async_io dependency for async-std
1 parent 9bd3d61 commit fb3f254

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sqlx-core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ any = []
1919
json = ["serde", "serde_json"]
2020

2121
# for conditional compilation
22-
_rt-async-std = ["async-std", "async-io"]
22+
_rt-async-std = ["async-std", "async-io-std"]
2323
_rt-tokio = ["tokio", "tokio-stream"]
2424
_tls-native-tls = ["native-tls"]
2525
_tls-rustls-aws-lc-rs = ["_tls-rustls", "rustls/aws-lc-rs", "webpki-roots"]
@@ -52,7 +52,7 @@ ipnetwork = { workspace = true, optional = true }
5252
mac_address = { workspace = true, optional = true }
5353
uuid = { workspace = true, optional = true }
5454

55-
async-io = { version = "1.9.0", optional = true }
55+
async-io-std = { package = "async-io", version = "1.9.0", optional = true }
5656
base64 = { version = "0.22.0", default-features = false, features = ["std"] }
5757
bytes = "1.1.0"
5858
chrono = { version = "0.4.34", default-features = false, features = ["clock"], optional = true }

sqlx-core/src/net/socket/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ pub async fn connect_tcp<Ws: WithSocket>(
204204

205205
#[cfg(feature = "_rt-async-std")]
206206
{
207-
use async_io::Async;
207+
use async_io_std::Async;
208208
use async_std::net::ToSocketAddrs;
209209
use std::net::TcpStream;
210210

@@ -262,7 +262,7 @@ pub async fn connect_uds<P: AsRef<Path>, Ws: WithSocket>(
262262

263263
#[cfg(feature = "_rt-async-std")]
264264
{
265-
use async_io::Async;
265+
use async_io_std::Async;
266266
use std::os::unix::net::UnixStream;
267267

268268
let stream = Async::<UnixStream>::connect(path).await?;

sqlx-core/src/rt/rt_async_std/socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::net::{Shutdown, TcpStream};
77
use std::task::{Context, Poll};
88

99
use crate::io::ReadBuf;
10-
use async_io::Async;
10+
use async_io_std::Async;
1111

1212
impl Socket for Async<TcpStream> {
1313
fn try_read(&mut self, buf: &mut dyn ReadBuf) -> io::Result<usize> {

0 commit comments

Comments
 (0)