Skip to content

Commit 3a13c10

Browse files
authored
Merge pull request #44 from ryanfowler/replace-async-std-with-smol
Replace async-std with smol
2 parents d4078b3 + 2f89ec6 commit 3a13c10

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to AI agents when working with code in this reposito
44

55
## Project Overview
66

7-
async-sqlite is a Rust library providing an asynchronous, runtime-agnostic wrapper around SQLite via `rusqlite`. It works with any async runtime (tokio, async-std, etc.) by using background threads internally rather than depending on a specific runtime.
7+
async-sqlite is a Rust library providing an asynchronous, runtime-agnostic wrapper around SQLite via `rusqlite`. It works with any async runtime (tokio, smol, etc.) by using background threads internally rather than depending on a specific runtime.
88

99
## Build Commands
1010

@@ -40,4 +40,4 @@ All Cargo features are pass-through to `rusqlite`. The `bundled` feature (defaul
4040

4141
## Testing
4242

43-
Tests in `tests/tests.rs` use a `async_test!` macro that generates two variants of each async test: one running on tokio and one on async-std. This ensures runtime compatibility. Tests use `tempfile` for temporary database files.
43+
Tests in `tests/tests.rs` use a `async_test!` macro that generates two variants of each async test: one running on tokio and one on smol. This ensures runtime compatibility. Tests use `tempfile` for temporary database files.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ futures-util = { version = "0.3" }
4949
rusqlite = { version = "0.38.0" }
5050

5151
[dev-dependencies]
52-
async-std = { version = "1.12.0" }
5352
paste = { version = "1.0.12" }
53+
smol = { version = "2" }
5454
tempfile = { version = "3.6.0" }
5555
tokio = { version = "1.29.1", features = ["rt"] }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
A library to interact with sqlite from an async context.
77

88
This library is tested on both [tokio](https://docs.rs/tokio/latest/tokio/)
9-
and [async_std](https://docs.rs/async-std/latest/async_std/), however
9+
and [smol](https://docs.rs/smol/latest/smol/), however
1010
it should be compatible with all async runtimes.
1111

1212
## Install

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! A library to interact with sqlite from an async context.
44
//!
55
//! This library is tested on both [tokio](https://docs.rs/tokio/latest/tokio/)
6-
//! and [async_std](https://docs.rs/async-std/latest/async_std/), however
6+
//! and [smol](https://docs.rs/smol/latest/smol/), however
77
//! it should be compatible with all async runtimes.
88
//!
99
//! ## Usage

tests/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ macro_rules! async_test {
6464
($name:ident) => {
6565
paste::item! {
6666
#[::core::prelude::v1::test]
67-
fn [< $name _async_std >] () {
68-
::async_std::task::block_on($name());
67+
fn [< $name _smol >] () {
68+
::smol::block_on($name());
6969
}
7070

7171
#[::core::prelude::v1::test]

0 commit comments

Comments
 (0)