Registry / async / async-std

async-std

JSON →
library1.13.2rscratesunverified

Deprecated in favor of smol - Async version of the Rust standard library.

# Cargo.toml [dependencies] async-std = "1.13.2"
INSTALL
IMPORT
SIG · ASYNC-STD
A
async-std
asyncrustv1.13.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

block_on
use async_std::task::block_on;

Run an async function synchronously with block_on.

use async_std::task::block_on; async fn hello() -> String { "Hello, async world!".to_string() } fn main() { let result = block_on(hello()); println!("{}", result); }
Debug
Known issues
breakingThis crate is deprecated; consider using `smol` or `tokio` instead.
fix
Migrate to `smol` or another async runtime.
affects: >=1.0.0
Upgrade
Version history
1.13.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
52 hits · last 30 days
node
44
OpenAI (training)
1
Resources
async-std — cargo add async-std · libregistry