Files

7.0 KiB

Changelog

All notable changes to this project will be documented in this file.

This project adheres to Semantic Versioning.

Releases may yanked if there is a security bug, a soundness bug, or a regression.

Unreleased

0.2.4 - 2024-11-23

0.2.3 - 2024-10-17

0.2.2 - 2024-07-11

0.2.1 - 2024-06-22

Note: This release has been yanked due to an issue fixed in 0.2.2.

  • Support impl Error for Arc<T: Error> in no-std at Rust 1.81+. (30b9f90)

  • Implement Default for Arc<[T]> and Arc<str> at Rust 1.51+. (align to the std Arc change in Rust 1.80) (c6ee296)

  • Implement {AsFd, AsRawFd} for Arc<T> on HermitOS. (b778244)

0.2.0 - 2024-05-07

  • Rewrite Arc based on std::sync::Arc's implementation. (#142)

    This fixes accidental API differences with std (#139, #140) and adds many missing APIs compared to std:

    • Add Arc::{downcast, into_inner, make_mut, new_cyclic} (#142)
    • Implement {fmt::Display, fmt::Pointer, Error, From<T>, From<Box<T>>, From<Cow<'a,T>>, AsFd, AsRawFd, AsHandle, AsSocket} for Arc<T> (#142, 78690d7, aba0930)
    • Implement {From<&[T]>, From<Vec<T>>, From<[T; N]>, FromIterator<T>} for Arc<[T]> (#142, 5e9f693)
    • Implement TryFrom<Arc<[T]>> for Arc<[T; N]> (#142)
    • Implement From<Arc<str>> for Arc<[u8]> (#142)
    • Implement {From<&str>, From<String>} for Arc<str> (#142)
    • Implement {Read, Write, Seek} for Arc<File> (591ece5)
    • Remove T: UnwindSafe bound from impl UnwindSafe for Arc<T> (#142)
  • Add task::Wake. (#145)

    This is equivalent to std::task::Wake, but using portable_atomic_util::Arc as a reference-counted pointer.

  • Respect RUSTC_WRAPPER in rustc version detection.

0.1.5 - 2023-12-17

  • Improve offset calculation in Arc::{into_raw,as_ptr,from_ptr}. (#141, thanks @gtsiam)

0.1.4 - 2023-12-16

  • Fix a bug where Arc::{into_raw,as_ptr} returned invalid pointers for larger alignment types. (#138, thanks @notgull)

0.1.3 - 2023-05-06

Note: This release has been yanked due to a bug fixed in 0.1.4.

  • Enable portable-atomic's require-cas feature to display helpful error messages to users on targets requiring additional action on the user side to provide atomic CAS. (#100)

0.1.2 - 2023-04-04

Note: This release has been yanked due to a bug fixed in 0.1.4.

  • Implement AsRef, Borrow, and Unpin on Arc. (#92 #93, thanks @notgull)

0.1.1 - 2023-03-24

Note: This release has been yanked due to a bug fixed in 0.1.4.

0.1.0 - 2023-01-15

Note: This release has been yanked due to a bug fixed in 0.1.4.

Initial release