6 releases (3 breaking)

0.4.0 Jul 5, 2025
0.3.1 Jul 2, 2025
0.3.0 May 21, 2024
0.2.1 May 11, 2024
0.1.0 May 10, 2024

#1035 in Asynchronous

Download history 114145/week @ 2025-10-14 123710/week @ 2025-10-21 151090/week @ 2025-10-28 141862/week @ 2025-11-04 150745/week @ 2025-11-11 130115/week @ 2025-11-18 41472/week @ 2025-11-25 94782/week @ 2025-12-02 272075/week @ 2025-12-09 189148/week @ 2025-12-16 21934/week @ 2025-12-23 58350/week @ 2025-12-30 202780/week @ 2026-01-06 281642/week @ 2026-01-13 369076/week @ 2026-01-20 299987/week @ 2026-01-27

1,195,541 downloads per month
Used in 3 crates (via zookeeper-client)

Apache-2.0

73KB
1.5K SLoC

Async runtime agnostic facilities

crates.io github-ci docs.rs Apache-2.0

asyncs is a shim like package to ship async runtime agnostic facilities.

Usages

  • cargo add asyncs for libraries.
  • cargo add --dev --features test asyncs for tests.
  • cargo add --features tokio,smol,async-global-executor for binaries to compat with existing async runtimes. See spawns for more.

Feature test should only be enabled for dev-dependencies.

Provides

  • asyncs::task::spawn to spawn tasks in runtime agnostic way from spawns.
  • select! to multiplex asynchronous futures simultaneously from async-select.
  • #[asyncs::test] to bootstrap a runtime for testing. This is only available with feature test.

Does not provide

Executors and #[asyncs::main].

Dependencies

~0.2–5.5MB
~125K SLoC