Eliza Weisman
884a9a4b18
chore: prepare Tokio v1.14.0 ( #4234 )
...
# 1.14.0 (November 15, 2021)
### Fixed
- macros: fix compiler errors when using `mut` patterns in `select!`
([#4211 ])
- sync: fix a data race between `oneshot::Sender::send` and awaiting a
`oneshot::Receiver` when the oneshot has been closed ([#4226 ])
- sync: make `AtomicWaker` panic safe ([#3689 ])
- runtime: fix basic scheduler dropping tasks outside a runtime context
([#4213 ])
### Added
- stats: add `RuntimeStats::busy_duration_total` ([#4179 ], [#4223 ])
### Changed
- io: updated `copy` buffer size to match `std::io::copy` ([#4209 ])
### Documented
- io: rename buffer to file in doc-test ([#4230 ])
- sync: fix Notify example ([#4212 ])
[#4211 ]: https://github.com/tokio-rs/tokio/pull/4211
[#4226 ]: https://github.com/tokio-rs/tokio/pull/4226
[#3689 ]: https://github.com/tokio-rs/tokio/pull/3689
[#4213 ]: https://github.com/tokio-rs/tokio/pull/4213
[#4179 ]: https://github.com/tokio-rs/tokio/pull/4179
[#4223 ]: https://github.com/tokio-rs/tokio/pull/4223
[#4209 ]: https://github.com/tokio-rs/tokio/pull/4209
[#4230 ]: https://github.com/tokio-rs/tokio/pull/4230
[#4212 ]: https://github.com/tokio-rs/tokio/pull/4212
2021-11-15 16:39:09 -08:00
Eliza Weisman
e0be45e49b
Merge v1.13.1 ( #4236 )
...
Refs: #4235
2021-11-15 16:09:33 -08:00
Alice Ryhl
579f61106d
ci: check for minimal versions with tokio_unstable ( #4224 )
2021-11-11 21:53:15 +01:00
Alice Ryhl
94ee305741
macros: fix mut patterns in select! macro ( #4211 )
2021-11-02 18:05:24 +01:00
Alice Ryhl
ac89d8926d
chore: prepare Tokio v1.13.0 ( #4196 )
2021-10-29 18:34:13 +02:00
Alice Ryhl
1ed89aa5cf
chore: prepare Tokio v1.12.0 ( #4123 )
2021-09-21 17:15:22 +02:00
Alan Somers
8e92f05795
io: update the mio-aio dev-dependency ( #4116 )
2021-09-18 09:25:52 +02:00
Alan Somers
8b298d9ed4
io: add POSIX AIO on FreeBSD ( #4054 )
2021-09-15 18:55:50 +02:00
Alice Ryhl
9a97eb36bc
chore: prepare Tokio v1.11.0 ( #4083 )
2021-08-31 23:26:42 +02:00
Alice Ryhl
98578a6f4a
stats: initial work on runtime stats ( #4043 )
2021-08-27 11:40:41 +02:00
Alice Ryhl
dd060b16f5
chore: prepare Tokio v1.10.1
2021-08-24 17:48:25 +02:00
Alice Ryhl
c0974bad94
chore: prepare Tokio v1.10.0 ( #4038 )
2021-08-12 21:55:48 +02:00
Alan Somers
032c55e77f
tokio: the test-util feature depends on rt, sync, and time ( #4036 )
...
Fixes #4035
2021-08-12 10:04:09 +02:00
Alan Somers
cf02b3f32d
fs: reorganize tokio::fs::file's mock tests ( #3988 )
2021-07-31 09:55:32 +02:00
Alice Ryhl
b280c6dcd7
chore: prepare Tokio v1.9.0 ( #3961 )
2021-07-22 12:05:39 +02:00
Carl Lerche
c8fc492748
Merge remote-tracking branch 'origin/tokio-1.8.x' into merge-1.8
2021-07-19 12:13:21 -07:00
Carl Lerche
7147042534
chore: prepare Tokio v1.8.2 release
2021-07-19 11:16:26 -07:00
Alan Somers
127983e5b4
tests: update Nix to 0.22.0 ( #3951 )
2021-07-11 09:53:04 +02:00
Carl Lerche
e0c527f383
chore: prepare Tokio v1.8.1 release
2021-07-06 15:37:17 -07:00
Alice Ryhl
677107d8d9
chore: prepare Tokio v1.8.0 ( #3912 )
2021-07-02 22:21:10 +02:00
Carl Lerche
7601dc6d2a
rt: avoid early task shutdown ( #3870 )
...
Tokio 1.7.0 introduced a change intended to eagerly shutdown newly
spawned tasks if the runtime is in the process of shutting down.
However, it introduced a bug where already spawned tasks could be
shutdown too early, resulting in the potential introduction of deadlocks
if tasks acquired mutexes in drop handlers.
Fixes #3869
2021-06-18 16:32:53 -07:00
Alice Ryhl
34c6a26c01
chore: prepare Tokio v1.7.0 ( #3863 )
2021-06-15 19:39:33 +02:00
John-John Tedro and Alice Ryhl
97e7830364
net: provide NamedPipe{Client, Server} types and builders ( #3760 )
...
This builds on https://github.com/tokio-rs/mio/pull/1351 and introduces the
tokio::net::windows::named_pipe module which provides low level types for
building and communicating asynchronously over windows named pipes.
Named pipes require the `net` feature flag to be enabled on Windows.
Co-authored-by: Alice Ryhl <[email protected] >
2021-06-15 08:13:31 +02:00
Carl Lerche
606206ecad
Merge branch 'tokio-1.6.x' into merge-1.6.x
2021-06-14 17:51:30 -07:00
Carl Lerche
dfe4013ff2
chore: prepare Tokio 1.6.2 release ( #3859 )
2021-06-14 17:50:34 -07:00
AtulJatia
2e44cd29df
net: TcpSocket from std::net::TcpStream ( #3838 )
2021-06-11 10:58:58 +02:00
Alice Ryhl
1baea398c4
chore: prepare Tokio v1.6.1
2021-05-28 09:59:28 -07:00
Alice Ryhl
3fbcf1ba50
Revert "fs: try doing a non-blocking read before punting to the threadpool ( #3518 )"
...
This reverts commit 39706b198c .
2021-05-28 09:59:28 -07:00
Alice Ryhl
580dc9594c
chore: prepare Tokio v1.6.0 ( #3782 )
2021-05-14 18:19:10 +02:00
William Manley
39706b198c
fs: try doing a non-blocking read before punting to the threadpool ( #3518 )
2021-04-14 15:44:49 +02:00
Alice Ryhl
a5ee2f0d3d
chore: prepare Tokio v1.5.0 ( #3695 )
2021-04-12 21:24:47 +02:00
Alice Ryhl
e366cf9b3e
chore: upgrade loom to 0.5.0 ( #3697 )
2021-04-12 20:28:48 +02:00
Taiki Endo
7384813979
chore: update proptest to 1 ( #3653 )
2021-03-27 19:34:11 +09:00
David Pedersen
dcac336dc7
chore: prepare Tokio v1.4.0 ( #3621 )
2021-03-20 12:16:15 +01:00
Alice Ryhl
d0e4dd1d7b
chore: prepare Tokio v1.3.0 ( #3597 )
2021-03-09 22:09:51 +01:00
Taiki Endo and Alice Ryhl
36d7dab504
chore: remove html_root_url ( #3489 )
...
Co-authored-by: Alice Ryhl <[email protected] >
2021-02-18 14:11:39 -08:00
Alice Ryhl
572a897d43
chore: prepare tokio v1.2.0 ( #3506 )
2021-02-05 23:27:42 +01:00
Steven Fackler
fcb6d041b9
time: make test-util paused time fully deterministic ( #3492 )
...
The time driver stores an Instant internally used as a "base" for future
time calculations. Since this is generated as the Runtime is being
constructed, it previously always happened before the user had a chance
to pause time. The fractional-millisecond variations in the timing
around the runtime construction and time pause cause tests running
entirely in paused time to be very slightly deterministic, with the time
driver advancing time by 1 millisecond more or less depending on how the
sub-millisecond components of the `Instant`s involved compared.
To avoid this, there is now a new option on `runtime::Builder` which
will create a `Runtime` with time "instantly" paused. This, along with a
small change to have the time driver use the provided clock as the
source for its start time allow totally deterministic tests with paused
time.
2021-02-05 20:12:25 +01:00
Carl Lerche
085f819f28
Merge branch 'tokio-1.0.x' into 'tokio-1.1.x'
2021-01-28 20:23:50 -08:00
Carl Lerche
5d0a81fb91
io: fix memory leak during shutdown ( #3477 )
...
In some cases, a cycle is created between I/O driver wakers and the I/O
driver resource slab. This patch clears stored wakers when an I/O
resource is dropped, breaking the cycle.
Fixes #3228
2021-01-28 17:49:10 -08:00
Alice Ryhl
35b1a4d0b3
chore: prepare Tokio 1.1.0 ( #3462 )
2021-01-22 23:05:37 +01:00
Carl Lerche
3dc5f6c0ab
chore: release tokio v1.0.2 ( #3429 )
2021-01-15 15:05:38 -08:00
Carl Lerche
5d35c907f6
chore: release tokio v1.0.2 ( #3429 )
2021-01-14 16:37:40 -08:00
Alice Ryhl
2330edc875
chore: prepare tokio 1.0.1 release ( #3347 )
2020-12-25 22:20:05 +01:00
Carl Lerche
a66017f049
chore: prepare Tokio 1.0 release ( #3319 )
2020-12-23 09:26:14 -08:00
Carl Lerche
0deaeb8494
chore: remove unused slab dependency ( #3318 )
2020-12-22 21:56:22 -08:00
Luke Steensen
a8dda19da4
chore: update to released bytes 1.0 ( #3317 )
2020-12-22 17:09:26 -08:00
Taiki Endo
eee3ca65d6
deps: update rand to 0.8, loom to 0.4 ( #3307 )
2020-12-22 10:28:35 +01:00
Carl Lerche
2893359988
chore: update to bytes 1.0 git branch ( #3301 )
...
Updates the code base to track the `bytes` git branch. This is in
preparation for the 1.0 release.
Closes #3058
2020-12-19 15:57:16 -08:00
Carl Lerche
5e5f513542
chore: remove some left over stream feature code ( #3300 )
...
Removes the `stream` feature flag from `Cargo.toml` and removes the
`futures-core` dependency. Once `Stream` lands in `std`, a feature flag
is most likely not needed.
2020-12-19 14:15:00 -08:00