Alice Ryhl
038de36132
chore: prepare tokio-util 0.7.2 ( #4690 )
2022-05-14 21:06:13 +02:00
Alice Ryhl
42d5a9fcd4
Merge 'tokio-util-0.6.x' into 'tokio-util-0.7.x'
2022-05-14 21:03:16 +02:00
Alice Ryhl
2659adf5fe
chore: prepare tokio-util 0.6.10 ( #4691 )
2022-05-14 20:16:41 +02:00
Finomnis
0105d9971f
sync: rewrite CancellationToken ( #4652 )
2022-05-14 20:16:36 +02:00
Dirkjan Ochtman
a05135a4f8
chore: prepare tokio-util 0.7.1 release ( #4521 )
2022-03-28 14:34:11 +02:00
Gus Wynn
413c812ac8
util: switch tokio-util from log to tracing ( #4539 )
2022-02-26 12:47:04 +01:00
Dirkjan Ochtman
69f135ed60
util: bump tokio dependency to 1.6 to satisfy minimal versions ( #4490 )
2022-02-12 10:02:07 +01:00
Toby Lawrence
e7a0da60cd
chore: prepare tokio-util 0.7.0 ( #4486 )
2022-02-10 12:23:58 -05:00
Carl Lerche
49fff47111
chore: increase MSRV to 1.49. ( #4457 )
...
Rust 1.49 was released on December 31, 2020, which meets our MSRV policy
of a minimum of 6 months.
2022-01-31 13:26:12 -08:00
Mark Drobnak
257053e40b
util: add spawn_pinned ( #3370 )
2022-01-27 15:26:09 +01:00
b-naber
c800deaacc
util: add shrink_to_fit and compact methods to DelayQueue ( #4170 )
2022-01-09 12:41:30 +01:00
Toby Lawrence
4b6bb1d9a7
chore(util): start v0.7 release cycle ( #4313 )
...
* chore(util): start v0.7 release cycle
Signed-off-by: Toby Lawrence <[email protected] >
2021-12-10 13:16:17 -05:00
Taiki Endo
1a423b3322
chore: remove doc URL from Cargo.toml ( #4251 )
...
https://doc.rust-lang.org/cargo/reference/manifest.html#the-documentation-field
> If no URL is specified in the manifest file, crates.io will
> automatically link your crate to the corresponding docs.rs page.
2021-11-23 11:53:32 +01:00
Taiki Endo
cf3206842c
chore: bump MSRV to 1.46 ( #4254 )
2021-11-23 12:09:24 +09:00
Alice Ryhl
aa03622cf3
chore: prepare tokio-util 0.6.9 ( #4199 )
2021-10-29 18:34:23 +02:00
Colin Walters
2734fa9a85
util/io: add SyncIoBridge ( #4146 )
2021-10-22 18:46:29 +02:00
Toby Lawrence
01a6feb0dc
chore: prepare tokio-util v0.6.8 ( #4087 )
...
Signed-off-by: Toby Lawrence <[email protected] >
2021-09-03 10:57:27 -04:00
Alice Ryhl
deb1f98125
chore: prepare tokio-util v0.6.7 ( #3784 )
2021-05-14 18:22:08 +02:00
John-John Tedro
2c5dc83019
cargo: path dependencies for all tokio things ( #3764 )
2021-05-08 12:54:30 +02:00
Alice Ryhl
917aad684b
chore: prepare tokio-util 0.6.6 ( #3696 )
2021-04-12 21:23:20 +02:00
David Pedersen
b1310ad14d
chore: prepare tokio-util v0.6.5 ( #3622 )
2021-03-20 12:16:56 +01:00
Alice Ryhl
b08b5edb2c
chore: prepare tokio-util v0.6.4 ( #3599 )
2021-03-09 22:11:38 +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
60d88840f4
chore: prepare tokio-util v0.6.3 ( #3488 )
2021-01-31 12:39:22 +01:00
Alice Ryhl
ee1f0c473f
util: remove tokio-stream dependency from tokio-util ( #3487 )
2021-01-31 11:08:40 +01:00
Rob Ede
06d6adf4b7
util: use ReusableBoxFuture for PollSemaphore ( #3463 )
2021-01-30 10:57:04 +01:00
Alice Ryhl
198363f4f1
chore: prepare tokio-util 0.6.2 ( #3453 )
2021-01-21 11:46:50 +01:00
Alice Ryhl
27b2d681e6
util: add pollable Semaphore ( #3444 )
2021-01-20 09:53:31 +01:00
Taiki Endo
d37486dd06
util: remove path deps ( #3413 )
...
* util: remove path deps
* ci: run clippy with --all-features
* ci: run tests with --all-features on FreeBSD CI
2021-01-13 00:19:57 +09:00
Daiki Mizukami
ed667c669a
chore: prepare tokio-util v0.6.1 release ( #3402 )
2021-01-12 12:46:07 +01:00
Carl Lerche
a66017f049
chore: prepare Tokio 1.0 release ( #3319 )
2020-12-23 09:26:14 -08:00
Luke Steensen
a8dda19da4
chore: update to released bytes 1.0 ( #3317 )
2020-12-22 17:09:26 -08: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
Alice Ryhl and Lucio Franco
3ecaf9fd9a
codec: write documentation for codec ( #3283 )
...
Co-authored-by: Lucio Franco <[email protected] >
2020-12-18 21:32:27 +01:00
Lucio Franco
8efa62013b
Move stream items into tokio-stream ( #3277 )
...
This change removes all references to `Stream` from
within the `tokio` crate and moves them into a new
`tokio-stream` crate. Most types have had their
`impl Stream` removed as well in-favor of their
inherent methods.
Closes #2870
2020-12-15 20:24:38 -08:00
Joshua Nelson
48961fac89
Document SinkExt and other futures traits on docs.rs ( #3271 )
...
These are extremely hard to find if you don't already know they exist.
2020-12-14 10:28:36 -05:00
Carl Lerche
473ddaa277
chore: prepare for Tokio 1.0 work ( #3238 )
2020-12-09 09:42:05 -08:00
Eliza Weisman
00500d1b35
util: prepare v0.5.1 release ( #3210 )
...
### Added
- io: `poll_read_buf` util fn (#2972 ).
- io: `poll_write_buf` util fn with vectored write support (#3156 ).
Signed-off-by: Eliza Weisman <[email protected] >
2020-12-03 15:30:52 -08:00
Eliza Weisman
647299866a
util: add writev-aware poll_write_buf ( #3156 )
...
## Motivation
In Tokio 0.2, `AsyncRead` and `AsyncWrite` had `poll_write_buf` and
`poll_read_buf` methods for reading and writing to implementers of
`bytes` `Buf` and `BufMut` traits. In 0.3, these were removed, but
`poll_read_buf` was added as a free function in `tokio-util`. However,
there is currently no `poll_write_buf`.
Now that `AsyncWrite` has regained support for vectored writes in #3149 ,
there's a lot of potential benefit in having a `poll_write_buf` that
uses vectored writes when supported and non-vectored writes when not
supported, so that users don't have to reimplement this.
## Solution
This PR adds a `poll_write_buf` function to `tokio_util::io`, analogous
to the existing `poll_read_buf` function.
This function writes from a `Buf` to an `AsyncWrite`, advancing the
`Buf`'s internal cursor. In addition, when the `AsyncWrite` supports
vectored writes (i.e. its `is_write_vectored` method returns `true`),
it will use vectored IO.
I copied the documentation for this functions from the docs from Tokio
0.2's `AsyncWrite::poll_write_buf` , with some minor modifications as
appropriate.
Finally, I fixed a minor issue in the existing docs for `poll_read_buf`
and `read_buf`, and updated `tokio_util::codec` to use `poll_write_buf`.
Signed-off-by: Eliza Weisman <[email protected] >
2020-12-03 11:19:16 -08:00
Alice Ryhl
c55d846f4b
util: add rt to tokio-util full feature ( #3194 )
2020-11-29 09:48:31 +01:00
Taiki Endo
60366ca0fa
chore: update pin-project-lite to 0.2.0 ( #3139 )
2020-11-13 15:24:06 -08:00
Evan Cameron
47658a6da5
util: resurrect UdpFramed ( #3044 )
2020-11-06 16:59:15 +01:00
Carl Lerche
24ed874e81
chore: prepare tokio-util v0.5.0 release ( #3078 )
2020-10-30 11:26:15 -07:00
Dirkjan Ochtman
3965d91a5e
util: update to bytes 0.6 ( #3071 )
...
Copies the implementation of poll_read_buf() from tokio::io::util::read_buf.
2020-10-29 10:45:19 -07:00
Carl Lerche
d78655337a
Revert "util: upgrade tokio-util to bytes 0.6 ( #3052 )" ( #3060 )
...
This reverts commit fe2b997 .
We are avoiding adding poll_read_buf to tokio itself for now. The patch is
reverted now in order to not block the v0.3.2 release (#3059 ).
2020-10-27 13:42:00 -07:00
Dirkjan Ochtman
fe2b997675
util: upgrade tokio-util to bytes 0.6 ( #3052 )
2020-10-27 09:30:29 +01:00
Carl Lerche
dc9742fbea
chore: post release Cargo.toml fixes ( #2963 )
2020-10-15 11:46:10 -07:00
Taiki Endo
c90681bd8e
rt: simplify rt-* features ( #2949 )
...
tokio:
merge rt-core and rt-util as rt
rename rt-threaded to rt-multi-thread
tokio-util:
rename rt-core to rt
Closes #2942
2020-10-12 14:13:23 -07:00
8880222036
rt: Remove threaded_scheduler() and basic_scheduler() ( #2876 )
...
Co-authored-by: Alice Ryhl <[email protected] >
Co-authored-by: Carl Lerche <[email protected] >
2020-10-12 13:44:54 -04:00