public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH-SERIES 0/20] update to tokio 1.0 and friends
@ 2021-01-12 13:58 Fabian Grünbichler
  2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox 1/4] Cargo.toml: update to tokio 1.0 Fabian Grünbichler
                   ` (20 more replies)
  0 siblings, 21 replies; 29+ messages in thread
From: Fabian Grünbichler @ 2021-01-12 13:58 UTC (permalink / raw)
  To: pbs-devel

this series updates to tokio 1.0 and related crates:
- bytes 1
- openssl 0.10
- tokio-openssl 0.6.1
- hyper 0.14
- h2 0.3
- tokio-stream (new, split out)
- tokio-util 0.6
- rustyline 7
- pin-project 1
- nix 0.19.1
- crossbeam-channel 0.5

the main changes are:
- mio no longer exposed by tokio, PollEvented is replaced by AsyncFd
- tokio runtime setup / interface was adapted
- tokio Stream code got split into a separate crate until std::stream exists
- tokio::io::AsyncRead using ReadBuf
- tokio::time::{Sleep,Timeout} no longer Unpin and renamed (delay -> sleep)
- tokio-openssl API changed
- hyper HTTP2 upgrade API changed

the recently introduced TimeoutFutureExt from the proxmox crate is dropped in
favour of using tokio::time::timeout directly, since it only had three call
sites.

the unused futures-io feature (and related code) in pxar was dropped.

all the important Stream wrappers/adapters now exist in tokio-stream.

AFAICT no performance regression or otherwise (anymore)

proxmox:
 proxmox/Cargo.toml              | 13 +++++----
 proxmox/debian/control          | 61 +++++++++++++++++++++++++++--------------
 proxmox/src/api/cli/readline.rs |  4 ++-
 proxmox/src/tools/future.rs     | 48 --------------------------------
 proxmox/src/tools/mod.rs        |  1 -
 proxmox/src/tools/websocket.rs  | 18 ++++++------
 6 files changed, 59 insertions(+), 86 deletions(-)

proxmox-backup:
 Cargo.toml                             | 25 +++++++------
 debian/control                         | 49 ++++++++++++-------------
 examples/h2client.rs                   | 37 ++++++++++---------
 examples/h2s-client.rs                 | 67 ++++++++++++++++------------------
 examples/h2s-server.rs                 | 42 ++++++++++-----------
 examples/h2server.rs                   | 56 +++++++++++++++-------------
 src/api2/admin/datastore.rs            |  3 +-
 src/api2/backup.rs                     |  5 +--
 src/api2/node.rs                       | 14 +++----
 src/api2/reader.rs                     |  5 +--
 src/backup/async_index_reader.rs       | 23 ++++++------
 src/bin/proxmox-backup-client.rs       |  5 ++-
 src/bin/proxmox-backup-manager.rs      |  2 +-
 src/bin/proxmox-backup-proxy.rs        | 38 ++++++++++++++-----
 src/bin/proxmox-daily-update.rs        |  2 +-
 src/bin/proxmox-tape.rs                |  2 +-
 src/bin/proxmox_backup_client/mount.rs |  5 ++-
 src/client/backup_writer.rs            | 10 ++---
 src/client/http_client.rs              | 40 +++++++++++---------
 src/server/command_socket.rs           |  2 +-
 src/server/rest.rs                     | 12 +++---
 src/tools/async_channel_writer.rs      |  2 +-
 src/tools/async_io.rs                  | 52 ++------------------------
 src/tools/broadcast_future.rs          |  2 +-
 src/tools/daemon.rs                    |  8 ++--
 src/tools/http.rs                      | 11 +++---
 src/tools/runtime.rs                   |  6 +--
 src/tools/wrapped_reader_stream.rs     |  8 ++--
 src/tools/zip.rs                       |  1 -
 tests/worker-task-abort.rs             |  2 +-
 30 files changed, 255 insertions(+), 281 deletions(-)

proxmox-backup-qemu:
 Cargo.toml     | 14 ++++++++------
 src/backup.rs  |  9 ++++-----
 src/restore.rs |  9 ++++-----
 3 files changed, 16 insertions(+), 16 deletions(-)

proxmox-fuse:
 Cargo.toml     |  7 +++++--
 debian/control | 22 ++++++++++------------
 src/fuse_fd.rs | 30 ------------------------------
 src/session.rs | 14 ++++++--------
 4 files changed, 21 insertions(+), 52 deletions(-)

pxar:
 Cargo.toml          |  11 ++---
 debian/control      |  78 +++++++++--------------------
 src/accessor/aio.rs |  41 ++++------------
 src/decoder/aio.rs  | 139 ++++++++--------------------------------------------
 src/encoder/aio.rs  |  81 ------------------------------
 src/encoder/mod.rs  |  21 ++------
 src/lib.rs          |  25 ++--------
 src/util.rs         |   7 +--
 8 files changed, 67 insertions(+), 336 deletions(-)





^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2021-01-14 13:42 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 13:58 [pbs-devel] [PATCH-SERIES 0/20] update to tokio 1.0 and friends Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox 1/4] Cargo.toml: update to tokio 1.0 Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox 2/4] update to rustyline 7 Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox 3/4] update to tokio 1.0 Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox 4/4] tokio 1.0: drop TimeoutFutureExt Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 01/12] update to tokio 1.0 Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 02/12] tokio 1.0: delay -> sleep Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 03/12] proxmox XXX: use tokio::time::timeout directly Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 04/12] tokio 1.0: AsyncRead/Seek with ReadBuf Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 05/12] tokio: adapt to 1.0 runtime changes Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 06/12] tokio: adapt to 1.0 process:Child changes Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 07/12] tokio 1.0: use ReceiverStream from tokio-stream Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 08/12] tokio 1.0: update to new tokio-openssl interface Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 09/12] tokio 1.0: update to new Signal interface Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 10/12] hyper: use new hyper::upgrade Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 11/12] examples: unify h2 examples Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-backup 12/12] cleanup: remove unnecessary 'mut' and '.clone()' Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH proxmox-fuse] update to tokio 1.0 Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [PATCH pxar 1/3] " Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [RFC pxar 2/3] clippy: use matches! instead of match Fabian Grünbichler
2021-01-12 13:58 ` [pbs-devel] [RFC pxar 3/3] remove futures-io feature Fabian Grünbichler
2021-01-12 14:42   ` Wolfgang Bumiller
2021-01-12 14:52 ` [pbs-devel] [PATCH-SERIES 0/20] update to tokio 1.0 and friends Wolfgang Bumiller
2021-01-14 13:39   ` [pbs-devel] [PATCH proxmox 1/3] fix u2f example Fabian Grünbichler
2021-01-14 13:39     ` [pbs-devel] [PATCH proxmox-backup] proxmox XXX: adapt to moved ParameterSchema Fabian Grünbichler
2021-01-14 13:39     ` [pbs-devel] [PATCH proxmox 2/3] move ParameterSchema from router to schema Fabian Grünbichler
2021-01-14 13:39     ` [pbs-devel] [PATCH proxmox 3/3] build: add autopkgtest target Fabian Grünbichler
2021-01-14 13:41   ` [pbs-devel] [PATCH pxar 1/2] fix example Fabian Grünbichler
2021-01-14 13:41     ` [pbs-devel] [PATCH pxar 2/2] build: fix --no-default-features Fabian Grünbichler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal