#asynchronous #futures #async

futures-lite

Futures, streams, and async I/O combinators

28 releases (16 stable)

1.11.3 Dec 18, 2020
1.11.2 Oct 20, 2020
1.8.0 Sep 22, 2020
1.0.0 Aug 26, 2020
0.1.0 May 31, 2020

#19 in Asynchronous

Download history 54817/week @ 2020-11-13 57862/week @ 2020-11-20 56088/week @ 2020-11-27 57496/week @ 2020-12-04 57876/week @ 2020-12-11 52463/week @ 2020-12-18 40390/week @ 2020-12-25 56469/week @ 2021-01-01 67138/week @ 2021-01-08 67673/week @ 2021-01-15 70564/week @ 2021-01-22 73869/week @ 2021-01-29 70267/week @ 2021-02-05 73468/week @ 2021-02-12 80150/week @ 2021-02-19 74677/week @ 2021-02-26

223,096 downloads per month
Used in 1,195 crates (106 directly)

Apache-2.0 OR MIT

190KB
3.5K SLoC

futures-lite

Build License Cargo Documentation

A lightweight async prelude.

This crate is a subset of futures that compiles an order of magnitude faster, fixes minor warts in its API, fills in some obvious gaps, and removes almost all unsafe code from it.

In short, this crate aims to be more enjoyable than futures but still fully compatible with it.

Examples

use futures_lite::future;

fn main() {
    future::block_on(async {
        println!("Hello world!");
    })
}

License

Licensed under either of

at your option.

Contribution

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.

Dependencies

~185KB