#asynchronous #futures #async

futures-lite

A lightweight async prelude

21 releases (9 stable)

new 1.8.0 Sep 22, 2020
1.7.0 Sep 17, 2020
1.0.0 Aug 26, 2020
0.1.11 Aug 12, 2020
0.1.0 May 31, 2020

#212 in Asynchronous

Download history 7/week @ 2020-06-04 20/week @ 2020-06-18 3/week @ 2020-06-25 4/week @ 2020-07-02 4/week @ 2020-07-09 9601/week @ 2020-07-16 23463/week @ 2020-07-23 25489/week @ 2020-07-30 26835/week @ 2020-08-06 29568/week @ 2020-08-13 27264/week @ 2020-08-20 29121/week @ 2020-08-27 27004/week @ 2020-09-03 41331/week @ 2020-09-10 38675/week @ 2020-09-17

93,705 downloads per month
Used in 724 crates (51 directly)

Apache-2.0 OR MIT

180KB
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::*;

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

~165KB