[pbs-devel] [PATCH proxmox{, -perl-rs, -backup} 0/5] move `HttpError` from `proxmox-router` into its own crate

Lukas Wagner l.wagner at proxmox.com
Wed Jul 26 14:50:01 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`)

These patches also update the users of the old `HttpError` to the new version.
`proxmox-notify`, which previously used it's own error type, is now also using 
the new crate.



proxmox:

Lukas Wagner (3):
  http-error: add new http-error crate
  router: rest-server: auth-api: use new http-error crate
  notify: use HttpError from proxmox-http-error

 Cargo.toml                           |   2 +
 proxmox-auth-api/Cargo.toml          |   2 +
 proxmox-auth-api/src/api/access.rs   |   3 +-
 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-rest-server/Cargo.toml       |   1 +
 proxmox-rest-server/src/h2service.rs |   2 +-
 proxmox-rest-server/src/rest.rs      |   2 +-
 proxmox-router/Cargo.toml            |   1 +
 proxmox-router/src/error.rs          |  44 ---------
 proxmox-router/src/lib.rs            |   7 +-
 18 files changed, 340 insertions(+), 304 deletions(-)
 create mode 100644 proxmox-http-error/Cargo.toml
 create mode 100644 proxmox-http-error/src/lib.rs
 delete mode 100644 proxmox-router/src/error.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(-)


proxmox-backup:

Lukas Wagner (1):
  use `HttpError` and macros from `proxmox-http-error` crate

 Cargo.toml                              | 3 +++
 src/api2/access/openid.rs               | 5 ++---
 src/api2/access/tfa.rs                  | 3 ++-
 src/api2/admin/datastore.rs             | 5 +++--
 src/api2/admin/namespace.rs             | 3 ++-
 src/api2/backup/mod.rs                  | 5 +++--
 src/api2/config/access/ldap.rs          | 3 ++-
 src/api2/config/access/openid.rs        | 3 ++-
 src/api2/config/acme.rs                 | 5 ++---
 src/api2/config/changer.rs              | 3 ++-
 src/api2/config/datastore.rs            | 3 ++-
 src/api2/config/drive.rs                | 3 ++-
 src/api2/config/media_pool.rs           | 3 ++-
 src/api2/config/prune.rs                | 3 ++-
 src/api2/config/remote.rs               | 3 ++-
 src/api2/config/sync.rs                 | 3 ++-
 src/api2/config/tape_backup_job.rs      | 3 ++-
 src/api2/config/tape_encryption_keys.rs | 3 ++-
 src/api2/config/traffic_control.rs      | 3 ++-
 src/api2/config/verify.rs               | 3 ++-
 src/api2/helpers.rs                     | 2 +-
 src/api2/reader/mod.rs                  | 5 +++--
 src/auth.rs                             | 2 +-
 src/backup/hierarchy.rs                 | 2 +-
 src/server/pull.rs                      | 4 ++--
 25 files changed, 51 insertions(+), 32 deletions(-)


Summary over all repositories:
  45 files changed, 433 insertions(+), 372 deletions(-)

-- 
murpp v0.4.0






More information about the pbs-devel mailing list