Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This file provides guidance to AI agents when working with code in this reposito

## Project Overview

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.
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.

## Build Commands

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

## Testing

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.
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.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ futures-util = { version = "0.3" }
rusqlite = { version = "0.38.0" }

[dev-dependencies]
async-std = { version = "1.12.0" }
paste = { version = "1.0.12" }
smol = { version = "2" }
tempfile = { version = "3.6.0" }
tokio = { version = "1.29.1", features = ["rt"] }
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
A library to interact with sqlite from an async context.

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

## Install
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! A library to interact with sqlite from an async context.
//!
//! This library is tested on both [tokio](https://docs.rs/tokio/latest/tokio/)
//! and [async_std](https://docs.rs/async-std/latest/async_std/), however
//! and [smol](https://docs.rs/smol/latest/smol/), however
//! it should be compatible with all async runtimes.
//!
//! ## Usage
Expand Down
4 changes: 2 additions & 2 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ macro_rules! async_test {
($name:ident) => {
paste::item! {
#[::core::prelude::v1::test]
fn [< $name _async_std >] () {
::async_std::task::block_on($name());
fn [< $name _smol >] () {
::smol::block_on($name());
}

#[::core::prelude::v1::test]
Expand Down