4 releases

new 0.2.1 Jun 22, 2024
0.2.0 May 7, 2024
0.1.5 Dec 17, 2023
0.1.3 May 6, 2023
0.1.0 Jan 15, 2023

#8 in #wake

Download history 388/week @ 2024-03-01 458/week @ 2024-03-08 509/week @ 2024-03-15 295/week @ 2024-03-22 440/week @ 2024-03-29 203/week @ 2024-04-05 215/week @ 2024-04-12 142/week @ 2024-04-19 986/week @ 2024-04-26 1993/week @ 2024-05-03 1387/week @ 2024-05-10 2158/week @ 2024-05-17 1595/week @ 2024-05-24 1884/week @ 2024-05-31 2050/week @ 2024-06-07 2142/week @ 2024-06-14

7,960 downloads per month
Used in 15 crates (5 directly)

Apache-2.0 OR MIT

1MB
16K SLoC

portable-atomic-util

crates.io docs.rs license msrv github actions cirrus ci

Synchronization primitives built with portable-atomic.

  • Provide Arc. (optional, requires the std or alloc feature)
  • Provide task::Wake. (optional, requires the std or alloc feature)

See #1 for other primitives being considered for addition to this crate.

Optional features

  • std
    Use std.

    Note:

    • This implicitly enables the alloc feature.
  • alloc
    Use alloc.

    Note:

    • The MSRV when this feature is enabled and the std feature is not enabled is Rust 1.36 that alloc crate stabilized.

License

Licensed under either of Apache License, Version 2.0 or MIT license 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.

Dependencies