#broadcast-channel #oneshot-channel #synchronization-primitive #future #intrusive #timer #async-await

no-std futures-intrusive

Futures based on intrusive data structures - for std and no-std environments

10 releases

0.5.0 Nov 4, 2022
0.4.1 Oct 23, 2022
0.4.0 Nov 20, 2020
0.3.1 Apr 30, 2020
0.1.1 May 26, 2019

#15 in Concurrency

Download history 179860/week @ 2023-11-18 205058/week @ 2023-11-25 227176/week @ 2023-12-02 206160/week @ 2023-12-09 196238/week @ 2023-12-16 101152/week @ 2023-12-23 168444/week @ 2023-12-30 214569/week @ 2024-01-06 219995/week @ 2024-01-13 223536/week @ 2024-01-20 222374/week @ 2024-01-27 226577/week @ 2024-02-03 227442/week @ 2024-02-10 218458/week @ 2024-02-17 242095/week @ 2024-02-24 258282/week @ 2024-03-02

986,735 downloads per month
Used in 956 crates (73 directly)

MIT/Apache

280KB
5K SLoC

futures-intrusive

This crate provides a variety of Futures-based and async/await compatible types that are based on the idea of intrusive collections:

  • Channels in a variety of flavors:
    • Oneshot
    • Multi-Producer Multi-Consumer (MPMC)
    • State Broadcast
  • Synchronization Primitives:
    • Manual Reset Event
    • Mutex
    • Semaphore
  • A timer

Please refer to the documentation for details.

In addition to the documentation the examples provide a quick overview on how the primitives can be used.

Usage

Add this to your Cargo.toml:

[dependencies]
futures-intrusive = "^0.5"

In order to use the crate in a no-std environment, it needs to be compiled without default features:

[dependencies]
futures-intrusive = { version = "^0.5", default-features = false }

The crate defines a feature alloc, which can be used in order to re-enable alloc features. Also defined is std, which can be used in order to re-enable std features.

Minimum Rust version

The minimum required Rust version is 1.36, due to reliance on stable Future, Context and Waker types.

License

Licensed under either of

at your option.

Dependencies

~0.1–6MB