Registry / async / tokio-compat

tokio-compat

JSON →
library0.1.6rscratesunverified

Provides compatibility between tokio 0.2 and legacy versions.

# Cargo.toml [dependencies] tokio-compat = "0.1.6"
INSTALL
IMPORT
SIG · TOKIO-COMPAT
T
tokio-compat
asyncrustv0.1.6
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.

Runtime
use tokio_compat::runtime::Runtime;

Creates a runtime compatible with tokio 0.2 and legacy versions.

use tokio_compat::runtime::Runtime; fn main() { let rt = Runtime::new().unwrap(); rt.block_on(async { println!("Hello from tokio-compat"); }); }
Debug
Known issues
gotchaRequires tokio 0.2 features; may conflict with newer tokio versions.
fix
Use tokio 0.2 directly or migrate to tokio 1.x with appropriate features.
affects: >=0.1.0
Upgrade
Version history
0.1.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
32
Resources
tokio-compat — cargo add tokio-compat · libregistry