From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id E07D267626 for ; Tue, 12 Jan 2021 14:58:33 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DD0192697E for ; Tue, 12 Jan 2021 14:58:33 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id D53FC26938 for ; Tue, 12 Jan 2021 14:58:32 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 9A3F545795 for ; Tue, 12 Jan 2021 14:58:32 +0100 (CET) From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= To: pbs-devel@lists.proxmox.com Date: Tue, 12 Jan 2021 14:58:10 +0100 Message-Id: <20210112135830.2798301-1-f.gruenbichler@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.376 Adjusted score from AWL reputation of From: address KAM_ASCII_DIVIDERS 0.8 Spam that uses ascii formatting tricks KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [node.rs, h2client.rs, backup.rs, daemon.rs, aio.rs, proxmox-backup-client.rs, readline.rs, proxmox-backup-manager.rs, datastore.rs, util.rs, worker-task-abort.rs, restore.rs, future.rs, lib.rs, mod.rs, http.rs, session.rs, mount.rs, proxmox-tape.rs, zip.rs] Subject: [pbs-devel] [PATCH-SERIES 0/20] update to tokio 1.0 and friends X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2021 13:58:33 -0000 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(-)