async-std v1.11.0 Release Notes

Release Date: 2022-03-22 // 5 months ago
  • ๐Ÿš€ This release improves compile times by up to 55% on initial builds, and up to 75% on recompilation. Additionally we've added a few new APIs and made some tweaks.

    โž• Added

    • TcpListener::into_incoming to convert a TcpListener into a stream of incoming TCP connections

    โœ‚ Removed

    • ๐Ÿ“š The internal extension_trait macro had been removed. This drastically improves compile times for async-std, but changes the way our documentation is rendered. This is a cosmetic change only, and all existing code should continue to work as it did before.

    ๐Ÿ”„ Changed

    • Some internal code has been de-macro-ified, making for quicker compile times.
    • 0๏ธโƒฃ We now use the default recursion limit.

    ๐Ÿ“„ Docs

    • ๐Ÿ›  Several docs improvements / fixes.

Previous changes from v1.10.0

  • ๐Ÿš€ This release comes with an assortment of small features and fixes.

    โž• Added

    • ๐Ÿ‘ฏ File now implements Clone so that Files can be passed into closures for use in spawn_blocking.
      • File's contents are already wrapped in Arcs, so the implementation of Clone is straightforward.
    • task::try_current() which returns a handle to the current task if called within the context of a task created by async-std.
    • async_std::io now re-exports WriteExt directly.

    ๐Ÿ›  Fixed

    • write! now takes already written bytes into account on File.


    • TcpStream now properly makes use of vectored IO.
    • The net::*::Incoming implementations now do less allocation.

    ๐Ÿ“„ Docs

    • ๐Ÿ›  Several docs improvements / fixes.