Registry / async / tokio-macros

tokio-macros

JSON →
library2.7.0rscratesunverified

Proc macros for the Tokio async runtime.

# Cargo.toml [dependencies] tokio-macros = "2.7.0"
INSTALL
IMPORT
SIG · TOKIO-MACROS
T
tokio-macros
asyncrustv2.7.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.

main
use tokio::main;

Entry point macro for Tokio async applications.

use tokio::main; #[main] async fn main() { println!("Hello, Tokio!"); }
Debug
Known issues
gotchaRequires the `macros` feature flag to be enabled.
fix
Add `tokio = { version = "1", features = ["macros"] }` to Cargo.toml.
affects: >=1.0.0
Upgrade
Version history
2.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
41 hits · last 30 days
node
36
OpenAI (training)
1
Resources
tokio-macros — cargo add tokio-macros · libregistry