Registry / async / futures-preview

futures-preview

JSON →
library0.2.2rscratesunverified

An implementation of futures and streams featuring zero allocations, composability, and iterator-like interfaces.

# Cargo.toml [dependencies] futures-preview = "0.2.2"
INSTALL
IMPORT
SIG · FUTURES-PREVIEW
F
futures-preview
asyncrustv0.2.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 futures::executor::block_on;

Runs an async function synchronously using block_on.

use futures::executor::block_on; async fn hello() -> String { "Hello, world!".to_string() } fn main() { let result = block_on(hello()); println!("{}", result); }
Debug
Known issues
breakingThis crate is a preview of the futures-rs library; the stable version is `futures` (without `-preview`).
fix
Use the `futures` crate instead for production code.
affects: >=0.1.0 <0.3.0
Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
30
OpenAI (training)
1
Resources
futures-preview — cargo add futures-preview · libregistry