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
-
Add unstable
portable_atomic_unstable_coerce_unsizedcfg (requires Rust nightly). (#195, thanks @brodycj) -
Respect
RUSTC_BOOTSTRAP=-1recently added in nightly in rustc version detection. (5b2847a)
0.2.3 - 2024-10-17
-
Add
new_uninit/new_uninit_slice/assume_inittoArcat Rust 1.36+. (align to the stdArcchange in Rust 1.82) (362dc9a) -
Support
make_mutonArc<[T]>andArc<str>at Rust 1.36+. (align to the stdArcchange in Rust 1.81) (362dc9a)
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
DefaultforArc<[T]>andArc<str>at Rust 1.51+. (align to the stdArcchange in Rust 1.80) (c6ee296) -
Implement
{AsFd, AsRawFd}forArc<T>on HermitOS. (b778244)
0.2.0 - 2024-05-07
-
Rewrite
Arcbased onstd::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}forArc<T>(#142, 78690d7, aba0930) - Implement
{From<&[T]>, From<Vec<T>>, From<[T; N]>, FromIterator<T>}forArc<[T]>(#142, 5e9f693) - Implement
TryFrom<Arc<[T]>>forArc<[T; N]>(#142) - Implement
From<Arc<str>>forArc<[u8]>(#142) - Implement
{From<&str>, From<String>}forArc<str>(#142) - Implement
{Read, Write, Seek}forArc<File>(591ece5) - Remove
T: UnwindSafebound fromimpl UnwindSafe for Arc<T>(#142)
- Add
-
Add
task::Wake. (#145)This is equivalent to
std::task::Wake, but usingportable_atomic_util::Arcas a reference-counted pointer. -
Respect
RUSTC_WRAPPERin 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'srequire-casfeature 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.
0.1.1 - 2023-03-24
Note: This release has been yanked due to a bug fixed in 0.1.4.
-
Prevent weak counter overflow in
Arc::downgrade. (#83)This fixes a potential unsoundness recently found in the standard library's
Arc.
0.1.0 - 2023-01-15
Note: This release has been yanked due to a bug fixed in 0.1.4.
Initial release