Expand description
§arta-async-std
Arta-async-std is a crate that provides an implementation of arta
abstractions for async-std runtime.
§Installation
Add a following dependencies to your Cargo.toml
:
[dependencies]
arta-async-std = "0.1.0"
arta = "0.1.1"
async-std = { version = "1.12.0", features = ["attributes"] }
§Usage
ⓘ
#[async_std::main]
async fn main() {
// After async-std runtime was initialized just call methods on `AsyncStdGlobalRuntime` to use
// this crate.
// Example:
let hosts = AsyncStdGlobalRuntime.read_to_string("/etc/hosts").await.unwrap();
println!("Hosts: {hosts}");
}
Modules§
- fs
- Async-std specific filesystem manipulation implementations.
- net
- Async-std specific TCP/UDP communication implementation.
- process
- Async-std specific process manipulation implementation.
- task
- Async-std specific green thread management implementation.
Structs§
- Async
StdGlobal Runtime - Struct representing tokio global runtime usage.