Registry / async / pyo3-asyncio

pyo3-asyncio

JSON →
library0.20.0rscratesunverified

PyO3 utilities for integrating Python's Asyncio event loop with Rust async code.

# Cargo.toml [dependencies] pyo3-asyncio = "0.20.0"
INSTALL
IMPORT
SIG · PYO3-ASYNCIO
P
pyo3-asyncio
asyncrustv0.20.0
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.

into_future
use pyo3_asyncio::async_std::into_future;

Minimal async main using pyo3-asyncio with async-std runtime.

use pyo3_asyncio::async_std::into_future; #[pyo3_asyncio::async_std::main] async fn main() -> PyResult<()> { let future = into_future(async { 42 }); let result = future.await?; println!("{}", result); Ok(()) }
Debug
Known issues
gotchaRequires a specific async runtime feature flag (e.g., `async-std` or `tokio`) to be enabled.
fix
Add `features = ["async-std"]` or `features = ["tokio"]` to your Cargo.toml dependency.
affects: >=0.20.0
Upgrade
Version history
0.20.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
Amazon
1
OpenAI (training)
1
Resources
pyo3-asyncio — cargo add pyo3-asyncio · libregistry