futures-rs
所属分类:collect
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2023-07-10 17:33:13
上 传 者:
sh-1993
说明: Rust中的零成本异步编程,
(Zero-cost asynchronous programming in Rust,)
文件列表:
.editorconfig (105, 2023-12-20)
.rustfmt.toml (46, 2023-12-20)
CHANGELOG.md (36296, 2023-12-20)
Cargo.toml (350, 2023-12-20)
LICENSE-APACHE (10874, 2023-12-20)
LICENSE-MIT (1094, 2023-12-20)
examples/ (0, 2023-12-20)
examples/functional/ (0, 2023-12-20)
examples/functional/Cargo.toml (178, 2023-12-20)
examples/functional/src/ (0, 2023-12-20)
examples/functional/src/main.rs (1929, 2023-12-20)
examples/imperative/ (0, 2023-12-20)
examples/imperative/Cargo.toml (178, 2023-12-20)
examples/imperative/src/ (0, 2023-12-20)
examples/imperative/src/main.rs (1945, 2023-12-20)
futures-channel/ (0, 2023-12-20)
futures-channel/Cargo.toml (898, 2023-12-20)
futures-channel/LICENSE-APACHE (17, 2023-12-20)
futures-channel/LICENSE-MIT (14, 2023-12-20)
futures-channel/benches/ (0, 2023-12-20)
futures-channel/benches/sync_mpsc.rs (3907, 2023-12-20)
futures-channel/src/ (0, 2023-12-20)
futures-channel/src/lib.rs (1498, 2023-12-20)
futures-channel/src/lock.rs (3148, 2023-12-20)
futures-channel/src/mpsc/ (0, 2023-12-20)
futures-channel/src/mpsc/mod.rs (46393, 2023-12-20)
futures-channel/src/mpsc/queue.rs (6702, 2023-12-20)
futures-channel/src/mpsc/sink_impl.rs (2315, 2023-12-20)
futures-channel/src/oneshot.rs (17843, 2023-12-20)
futures-channel/tests/ (0, 2023-12-20)
futures-channel/tests/channel.rs (1566, 2023-12-20)
futures-channel/tests/mpsc-close.rs (10289, 2023-12-20)
futures-channel/tests/mpsc-size_hint.rs (1295, 2023-12-20)
... ...
Zero-cost asynchronous programming in Rust
Documentation
|
Website
`futures-rs` is a library providing the foundations for asynchronous programming in Rust.
It includes key trait definitions like `Stream`, as well as utilities like `join!`,
`select!`, and various futures combinator methods which enable expressive asynchronous
control flow.
## Usage
Add this to your `Cargo.toml`:
```toml
[dependencies]
futures = "0.3"
```
The current `futures` requires Rust 1.56 or later.
### Feature `std`
Futures-rs works without the standard library, such as in bare metal environments.
However, it has a significantly reduced API surface. To use futures-rs in
a `#[no_std]` environment, use:
```toml
[dependencies]
futures = { version = "0.3", default-features = false }
```
## License
Licensed under either of [Apache License, Version 2.0](https://github.com/rust-lang/futures-rs/blob/master/LICENSE-APACHE) or
[MIT license](https://github.com/rust-lang/futures-rs/blob/master/LICENSE-MIT) at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.
近期下载者:
相关文件:
收藏者: