#asynchronous #futures #async

futures-lite

Futures, streams, and async I/O combinators

27 releases (15 stable)

1.11.2 Oct 20, 2020
1.11.1 Oct 10, 2020
1.8.0 Sep 22, 2020
1.0.0 Aug 26, 2020
0.1.0 May 31, 2020

#2 in #asynchronous

Download history 27013/week @ 2020-08-04 29598/week @ 2020-08-11 27655/week @ 2020-08-18 29685/week @ 2020-08-25 25194/week @ 2020-09-01 35918/week @ 2020-09-08 43589/week @ 2020-09-15 39367/week @ 2020-09-22 43393/week @ 2020-09-29 46808/week @ 2020-10-06 51982/week @ 2020-10-13 51517/week @ 2020-10-20 52099/week @ 2020-10-27 54240/week @ 2020-11-03 52450/week @ 2020-11-10 54602/week @ 2020-11-17

147,794 downloads per month
Used in 898 crates (77 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