[pve-devel] [PATCH v2 proxmox{, -perl-rs} 0/4] move `HttpError` from `proxmox-router` into its own crate
Lukas Wagner
l.wagner at proxmox.com
Wed Jul 26 16:18:20 CEST 2023
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
More information about the pve-devel
mailing list