| Crates.io | tokio-test-lite |
| lib.rs | tokio-test-lite |
| version | 0.2.0 |
| created_at | 2025-12-24 14:14:21.140441+00 |
| updated_at | 2025-12-24 14:30:37.627052+00 |
| description | Lightweight #[test] attribute for async tokio tests without syn |
| homepage | |
| repository | https://github.com/bearcove/tokio-test-lite |
| max_upload_size | |
| id | 2003283 |
| size | 20,965 |
Lightweight #[test] attribute for async tokio tests — without syn.
tokio-macros pulls in syn, which adds significant compile time. This crate provides a minimal #[test] attribute macro using only quote and proc_macro2.
#[tokio_test_lite::test]
async fn my_test() {
let result = some_async_fn().await;
assert_eq!(result, expected);
}
Each test creates its own single-threaded tokio runtime with all features enabled.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.