Skip to content

Releases: tokio-rs/tokio

tokio-stream-0.1.5

20 Mar 11:20
b4918ad
Compare
Choose a tag to compare

Fixed

  • stream: documentation note for throttle Unpin (#3600)

Tokio v1.4.0

20 Mar 11:21
dcac336
Compare
Choose a tag to compare

Added

  • macros: introduce biased argument for select! (#3603)
  • runtime: add Handle::block_on (#3569)

Fixed

  • runtime: avoid unnecessary polling of block_on future (#3582)
  • runtime: fix memory leak/growth when creating many runtimes (#3564)
  • runtime: mark EnterGuard with must_use (#3609)

Documented

  • chore: mention fix for building docs in contributing guide (#3618)
  • doc: add link to PollSender (#3613)
  • doc: alias sleep to delay (#3604)
  • sync: improve Mutex FIFO explanation (#3615)
  • timer: fix double newline in module docs (#3617)

Tokio v1.3.0

09 Mar 21:12
d0e4dd1
Compare
Choose a tag to compare

Added

  • coop: expose an unconstrained() opt-out (#3547)
  • net: add into_std for net types without it (#3509)
  • sync: add same_channel method to mpsc::Sender (#3532)
  • sync: add {try_,}acquire_many_owned to Semaphore (#3535)
  • sync: add back RwLockWriteGuard::map and RwLockWriteGuard::try_map (#3348)

Fixed

  • sync: allow oneshot::Receiver::close after successful try_recv (#3552)
  • time: do not panic on timeout(Duration::MAX) (#3551)

Documented

  • doc: doc aliases for pre-1.0 function names (#3523)
  • io: fix typos (#3541)
  • io: note the EOF behaviour of read_until (#3536)
  • io: update AsyncRead::poll_read doc (#3557)
  • net: update UdpSocket splitting doc (#3517)
  • runtime: add link to LocalSet on new_current_thread (#3508)
  • runtime: update documentation of thread limits (#3527)
  • sync: do not recommend join_all for Barrier (#3514)
  • sync: documentation for oneshot (#3592)
  • sync: rename notify to notify_one (#3526)
  • time: fix typo in Sleep doc (#3515)
  • time: sync interval.rs and time/mod.rs docs (#3533)

Tokio v1.2.0

06 Feb 15:40
572a897
Compare
Choose a tag to compare

Added

  • signal: make Signal::poll_recv method public (#3383)

Fixed

  • time: make test-util paused time fully deterministic (#3492)

Documented

  • sync: link to new broadcast and watch wrappers (#3504)

Tokio v1.1.1

29 Jan 16:34
085f819
Compare
Choose a tag to compare

Forward ports 1.0.3 fix.

Fixed

  • io: memory leak during shutdown (#3477).

Tokio v1.0.3

29 Jan 01:51
5d0a81f
Compare
Choose a tag to compare

Fixed

  • io: memory leak during shutdown (#3477).

Tokio v1.1.0

22 Jan 22:07
35b1a4d
Compare
Choose a tag to compare

Added

  • net: add try_read_buf and try_recv_buf (#3351)
  • mpsc: Add Sender::try_reserve function (#3418)
  • sync: add RwLock try_read and try_write methods (#3400)
  • io: add ReadBuf::inner_mut (#3443)

Changed

  • macros: improve select! error message (#3352)
  • io: keep track of initialized bytes in read_to_end (#3426)
  • runtime: consolidate errors for context missing (#3441)

Fixed

  • task: wake LocalSet on spawn_local (#3369)
  • sync: fix panic in broadcast::Receiver drop (#3434)

Documented

  • stream: link to new Stream wrappers in tokio-stream (#3343)
  • docs: mention that test-util feature is not enabled with full (#3397)
  • process: add documentation to process::Child fields (#3437)
  • io: clarify AsyncFd docs about changes of the inner fd (#3430)
  • net: update datagram docs on splitting (#3448)
  • time: document that Sleep is not Unpin (#3457)
  • sync: add link to PollSemaphore (#3456)
  • task: add LocalSet example (#3438)
  • sync: improve bounded mpsc documentation (#3458)

Tokio v1.0.2

15 Jan 00:43
5d35c90
Compare
Choose a tag to compare

Fixed

  • io: soundness in read_to_end (#3428).

Tokio v1.0.1

25 Dec 21:23
2330edc
Compare
Choose a tag to compare

This release fixes a soundness hole caused by the combination of RwLockWriteGuard::map and RwLockWriteGuard::downgrade by removing the map function. This is a breaking change, but breaking changes are allowed under our semver policy when they are required to fix a soundness hole. (See this RFC for more.)

Note that we have chosen not to do a deprecation cycle or similar because Tokio 1.0.0 was released two days ago, and therefore the impact should be minimal.

Due to the soundness hole, we have also yanked Tokio version 1.0.0.

Removed

  • sync: remove RwLockWriteGuard::map and RwLockWriteGuard::try_map (#3345)

Fixed

  • docs: remove stream feature from docs (#3335)

Tokio v1.0.0

23 Dec 17:35
a66017f
Compare
Choose a tag to compare

Commit to the API and long-term support.

Announcement and more details.

Fixed

  • sync: spurious wakeup in watch (#3234).

Changed

  • io: rename AsyncFd::with_io() to try_io() (#3306)
  • fs: avoid OS specific *Ext traits in favor of conditionally defining the fn (#3264).
  • fs: Sleep is !Unpin (#3278).
  • net: pass SocketAddr by value (#3125).
  • net: TcpStream::poll_peek takes ReadBuf (#3259).
  • rt: rename runtime::Builder::max_threads() to max_blocking_threads() (#3287).
  • time: require current_thread runtime when calling time::pause() (#3289).

Removed

  • remove tokio::prelude (#3299).
  • io: remove AsyncFd::with_poll() (#3306).
  • net: remove {Tcp,Unix}Stream::shutdown() in favor of AsyncWrite::shutdown() (#3298).
  • stream: move all stream utilities to tokio-stream until Stream is added to
    std (#3277).
  • sync: mpsc try_recv() due to unexpected behavior (#3263).
  • tracing: make unstable as tracing-core is not 1.0 yet (#3266).

Added

  • fs: poll_* fns to DirEntry (#3308).
  • io: poll_* fns to io::Lines, io::Split (#3308).
  • io: _mut method variants to AsyncFd (#3304).
  • net: poll_* fns to UnixDatagram (#3223).
  • net: UnixStream readiness and non-blocking ops (#3246).
  • sync: UnboundedReceiver::blocking_recv() (#3262).
  • sync: watch::Sender::borrow() (#3269).
  • sync: Semaphore::close() (#3065).
  • sync: poll_recv fns to mpsc::Receiver, mpsc::UnboundedReceiver (#3308).
  • time: poll_tick fn to time::Interval (#3316).