Skip to content

0.2.0

Choose a tag to compare

@taiki-e taiki-e released this 14 Mar 16:14
· 93 commits to main since this release
Immutable release. Only release title and notes can be modified.
  • 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.