Releases: taiki-e/portable-atomic-util
0.2.7
- Implement serde serialization and deserialization for
Arc, gated behind "serde" feature. (#2, thanks @tommasoclini)
0.2.6
portable-atomic-util has been extracted from the portable-atomic repository into its own repository: https://github.com/taiki-e/portable-atomic-util
0.2.5
-
Add
Arc::{new_zeroed,new_zeroed_slice}at Rust 1.36+. (align to the stdArcchange in Rust 1.92) (f8affb6, ae5aba7) -
Implement
DefaultforPin<Arc<T>: Default>. (align to the stdArcchange in Rust 1.91) (2d8d33c) -
Implement
From<&mut {[T],str}>forArc<{[T],str}>at Rust 1.36+. (align to the stdArcchange in Rust 1.84) (99640d6, ae5aba7) -
Implement
{AsFd, AsRawFd}forArc<T>on Trusty. (1b09ffb) -
Support slice-related methods that previously required Rust 1.44+ at Rust 1.36+. (ae5aba7)
-
Support
AsRawFd for Arc<T>implementation on Unix in all Rust versions. Previously, it was only for Rust 1.63+. (1b09ffb) -
Fix build error when building for HermitOS with
stdfeature in Rust 1.63-1.68. (1b09ffb) -
Documentation improvements.
-
Enable release immutability.
0.2.4
-
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
-
Add
Arc::{new_uninit,assume_init}at Rust 1.36+ andArc::new_uninit_sliceat Rust 1.44+. (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
0.2.1
-
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
-
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.