Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Async version of the Rust standard library

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

async-rs/async-std

We createdasync-std to demonstrate the value of making a library as close tostd as possible, but async. We think that demonstration was successful, andwe hope it will influence future design and development directions of async instd. However, in the meantime, thesmolproject came about and provided a great executor and libraries for asynchronoususe in the Rust ecosystem. We think that resources would be better spentconsolidating aroundsmol, rather than continuing to provide occasionalmaintenance ofasync-std. As such, we recommend that all users ofasync-std, and all libraries built onasync-std, switch tosmol instead.

In addition to thesmol project as a direct replacement, you may find otherparts of the futures ecosystem useful, includingfutures-concurrency,async-io,futures-lite, andasync-compat.


This crate provides an async version ofstd. It provides all the interfacesyou are used to, but in an async version and ready for Rust'sasync/awaitsyntax.

Features

  • Modern: Built from the ground up forstd::future andasync/await withblazing fast compilation time.
  • Fast: Our robust allocator and threadpool designs provide ultra-highthroughput with predictably low latency.
  • Intuitive: Complete parity with the stdlib means you only need to learnAPIs once.
  • Clear:Detailed documentation andaccessible guides meanusing async Rust was never easier.

Examples

use async_std::task;asyncfnsay_hello(){println!("Hello, world!");}fnmain(){    task::block_on(say_hello())}

More examples, including networking and file access, can be found in ourexamples directory and in ourdocumentation.

Philosophy

We believe Async Rust should be as easy to pick up as Sync Rust. We also believethat the best API is the one you already know. And finally, we believe thatproviding an asynchronous counterpart to the standard library is the best waystdlib provides a reliable basis for both performance and productivity.

Async-std is the embodiment of that vision. It combines single-allocation taskcreation, with an adaptive lock-free executor, threadpool and network driver tocreate a smooth system that processes work at a high pace with low latency,using Rust's familiar stdlib API.

License

Licensed under either ofApache License, Version2.0 orMIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submittedfor inclusion in this crate by you, as defined in the Apache-2.0 license, shallbe dual licensed as above, without any additional terms or conditions.

About

Async version of the Rust standard library

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors136


[8]ページ先頭

©2009-2025 Movatter.jp