#async #runtime-agnostic #facilities #sync #async-global-executor #asyncs

asyncs-sync

Asynchronous runtime agnostic synchronization utilities

3 unstable releases

0.4.0 Jul 5, 2025
0.3.1 Jul 2, 2025
0.3.0 May 21, 2024

#2129 in Asynchronous

Download history 232164/week @ 2026-02-20 273136/week @ 2026-02-27 233906/week @ 2026-03-06 147303/week @ 2026-03-13 1177/week @ 2026-03-20 159/week @ 2026-03-27 155/week @ 2026-04-03 204/week @ 2026-04-10 390/week @ 2026-04-17 564/week @ 2026-04-24 457/week @ 2026-05-01 94/week @ 2026-05-08 86/week @ 2026-05-15 168/week @ 2026-05-22 411/week @ 2026-05-29 561/week @ 2026-06-05

1,268 downloads per month
Used in 6 crates (via asyncs)

Apache-2.0

58KB
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].

No runtime deps