Registry / async / trt
library0.1.29rscratesunverified

Tokio global runtime helper.

# Cargo.toml [dependencies] trt = "0.1.29"
INSTALL
IMPORT
SIG · TRT
T
trt
asyncrustv0.1.29
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 trt::Runtime;

Creates a new Tokio runtime using trt.

use trt::Runtime; fn main() { let rt = Runtime::new().unwrap(); rt.block_on(async { println!("Hello from tokio runtime"); }); }
Debug
Known issues
gotchaRequires tokio as a dependency with the 'rt' feature.
fix
Add tokio = { version = "1", features = ["rt"] } to Cargo.toml.
affects: >=0.1.0
Upgrade
Version history
0.1.29latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
51 hits · last 30 days
node
46
Resources
trt — cargo add trt · libregistry