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 DF6FD818C for ; Wed, 26 Jul 2023 16:18:43 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C112D7A3 for ; Wed, 26 Jul 2023 16:18:43 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (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 for ; Wed, 26 Jul 2023 16:18:42 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 5B35045A60 for ; Wed, 26 Jul 2023 16:18:42 +0200 (CEST) From: Lukas Wagner To: pve-devel@lists.proxmox.com Date: Wed, 26 Jul 2023 16:18:20 +0200 Message-Id: <20230726141824.813621-1-l.wagner@proxmox.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.055 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [mod.rs, error.rs, notify.rs, common.rs, sendmail.rs, gotify.rs, lib.rs, filter.rs, group.rs] Subject: [pve-devel] [PATCH v2 proxmox{, -perl-rs} 0/4] move `HttpError` from `proxmox-router` into its own crate X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jul 2023 14:18:43 -0000 This patch series moves `HttpError` from `proxmox-router` into its own little crate. The main benefit of this is that one can now use `HttpError` independently (e.g. for `proxmox-notify`) Changes since v1: - Re-export HttpError from proxmox-router instead of changing all existing users. - Drop unused 'derive' features for the serde dependency proxmox: Lukas Wagner (3): http-error: add new http-error crate router: re-export `HttpError` from `proxmox-http-error` notify: use HttpError from proxmox-http-error Cargo.toml | 2 + proxmox-http-error/Cargo.toml | 16 ++++ proxmox-http-error/src/lib.rs | 81 ++++++++++++++++++ proxmox-notify/Cargo.toml | 1 + proxmox-notify/src/api/common.rs | 33 ++++---- proxmox-notify/src/api/filter.rs | 59 ++++++------- proxmox-notify/src/api/gotify.rs | 85 ++++++++++--------- proxmox-notify/src/api/group.rs | 82 +++++++++--------- proxmox-notify/src/api/mod.rs | 130 ++++++++++------------------- proxmox-notify/src/api/sendmail.rs | 93 ++++++++++++--------- proxmox-router/Cargo.toml | 1 + proxmox-router/src/error.rs | 42 +--------- proxmox-router/src/lib.rs | 2 +- 13 files changed, 334 insertions(+), 293 deletions(-) create mode 100644 proxmox-http-error/Cargo.toml create mode 100644 proxmox-http-error/src/lib.rs proxmox-perl-rs: Lukas Wagner (1): notify: use new HttpError type common/src/notify.rs | 77 +++++++++++++++++++++++--------------------- pve-rs/Cargo.toml | 1 + 2 files changed, 42 insertions(+), 36 deletions(-) Summary over all repositories: 15 files changed, 376 insertions(+), 329 deletions(-) -- murpp v0.4.0