public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH FIXUP proxmox-backup-qemu] fixup: update to current PBS head
Date: Mon, 12 Dec 2022 14:41:29 +0100	[thread overview]
Message-ID: <20221212134129.2125759-1-f.gruenbichler@proxmox.com> (raw)
In-Reply-To: <20221212120541.1909975-2-f.gruenbichler@proxmox.com>

to reduce transitive dependencies pulled in by pbs-config, like proxmox-metrics

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
turns out Wolfgang already had a WIP "split pbs-config" patch lying around,
squashing this into the "update dependencies" patch allows us to get rid of the
unneeded transitive dependencies and unused parts of pbs-config.

 Cargo.toml     | 10 +++++-----
 debian/control |  6 ------
 src/backup.rs  |  2 +-
 src/restore.rs |  2 +-
 4 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index f6841be..b56f073 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -34,11 +34,11 @@ proxmox-lang = "1"
 proxmox-schema = { version = "1", features = [ "api-macro" ] }
 proxmox-sys = { version = "0.4", features = [ "sortable-macro"] }
 
-pbs-api-types = { git = "git://git.proxmox.com/git/proxmox-backup.git", rev = "v2.3.1" }
-pbs-tools     = { git = "git://git.proxmox.com/git/proxmox-backup.git", rev = "v2.3.1" }
-pbs-config    = { git = "git://git.proxmox.com/git/proxmox-backup.git", rev = "v2.3.1" }
-pbs-datastore = { git = "git://git.proxmox.com/git/proxmox-backup.git", rev = "v2.3.1" }
-pbs-client    = { git = "git://git.proxmox.com/git/proxmox-backup.git", rev = "v2.3.1" }
+pbs-api-types = { git = "git://git.proxmox.com/git/proxmox-backup.git", rev = "8ebb984fbe2756392d438cc85b31f894829db06c" }
+pbs-client    = { git = "git://git.proxmox.com/git/proxmox-backup.git", rev = "8ebb984fbe2756392d438cc85b31f894829db06c" }
+pbs-datastore = { git = "git://git.proxmox.com/git/proxmox-backup.git", rev = "8ebb984fbe2756392d438cc85b31f894829db06c" }
+pbs-key-config    = { git = "git://git.proxmox.com/git/proxmox-backup.git", rev = "8ebb984fbe2756392d438cc85b31f894829db06c" }
+pbs-tools     = { git = "git://git.proxmox.com/git/proxmox-backup.git", rev = "8ebb984fbe2756392d438cc85b31f894829db06c" }
 
 serde_json = "1.0"
 tokio = { version = "1.6", features = [ "fs", "io-util", "macros", "net", "rt-multi-thread", "signal", "time" ] }
diff --git a/debian/control b/debian/control
index 3627ea9..640b592 100644
--- a/debian/control
+++ b/debian/control
@@ -42,21 +42,15 @@ Build-Depends: cbindgen,
  librust-proxmox-io-1+default-dev (>= 1.0.1-~~),
  librust-proxmox-io-1+tokio-dev (>= 1.0.1-~~),
  librust-proxmox-lang-1+default-dev (>= 1.1-~~),
- librust-proxmox-metrics-0.2+default-dev,
  librust-proxmox-router-1+cli-dev (>= 1.3-~~),
  librust-proxmox-router-1+default-dev (>= 1.3-~~),
  librust-proxmox-router-1+server-dev (>= 1.3-~~),
  librust-proxmox-schema-1+api-macro-dev (>= 1.3.1-~~),
  librust-proxmox-schema-1+default-dev (>= 1.3.1-~~),
- librust-proxmox-section-config-1+default-dev,
  librust-proxmox-serde-0.1+default-dev (>= 0.1.1-~~),
  librust-proxmox-serde-0.1+serde-json-dev (>= 0.1.1-~~),
- librust-proxmox-shared-memory-0.2+default-dev,
- librust-proxmox-sys-0.4+acl-dev (>= 0.4.1-~~),
- librust-proxmox-sys-0.4+crypt-dev (>= 0.4.1-~~),
  librust-proxmox-sys-0.4+default-dev (>= 0.4.1-~~),
  librust-proxmox-sys-0.4+sortable-macro-dev (>= 0.4.1-~~),
- librust-proxmox-sys-0.4+timer-dev (>= 0.4.1-~~),
  librust-proxmox-time-1+default-dev (>= 1.1.2-~~),
  librust-proxmox-uuid-1+default-dev,
  librust-proxmox-uuid-1+serde-dev,
diff --git a/src/backup.rs b/src/backup.rs
index 89b4d93..bbe4f00 100644
--- a/src/backup.rs
+++ b/src/backup.rs
@@ -12,8 +12,8 @@ use proxmox_sys::fs::file_get_contents;
 
 use pbs_api_types::{BackupType, CryptMode};
 use pbs_client::{BackupWriter, HttpClient, HttpClientOptions};
-use pbs_config::key_config::{load_and_decrypt_key, rsa_encrypt_key_config, KeyConfig};
 use pbs_datastore::BackupManifest;
+use pbs_key_config::{load_and_decrypt_key, rsa_encrypt_key_config, KeyConfig};
 use pbs_tools::crypt_config::CryptConfig;
 
 use super::BackupSetup;
diff --git a/src/restore.rs b/src/restore.rs
index 1cb7e98..ba6f00f 100644
--- a/src/restore.rs
+++ b/src/restore.rs
@@ -8,13 +8,13 @@ use tokio::runtime::Runtime;
 use proxmox_async::runtime::get_runtime_with_builder;
 
 use pbs_client::{BackupReader, HttpClient, HttpClientOptions, RemoteChunkReader};
-use pbs_config::key_config::load_and_decrypt_key;
 use pbs_datastore::cached_chunk_reader::CachedChunkReader;
 use pbs_datastore::data_blob::DataChunkBuilder;
 use pbs_datastore::fixed_index::FixedIndexReader;
 use pbs_datastore::index::IndexFile;
 use pbs_datastore::read_chunk::ReadChunk;
 use pbs_datastore::BackupManifest;
+use pbs_key_config::load_and_decrypt_key;
 use pbs_tools::crypt_config::CryptConfig;
 
 use super::BackupSetup;
-- 
2.30.2





  reply	other threads:[~2022-12-12 13:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12 12:05 [pbs-devel] [PATCH proxmox-backup-qemu 0/6] update to current PBS/dependencies Fabian Grünbichler
2022-12-12 12:05 ` [pbs-devel] [PATCH proxmox-backup-qemu 1/6] update dependencies Fabian Grünbichler
2022-12-12 13:41   ` Fabian Grünbichler [this message]
2022-12-12 12:05 ` [pbs-devel] [PATCH proxmox-backup-qemu 2/6] clippy fixes Fabian Grünbichler
2022-12-12 12:05 ` [pbs-devel] [PATCH proxmox-backup-qemu 3/6] clippy fix: shorten bool->i32 conversion Fabian Grünbichler
2022-12-12 12:05 ` [pbs-devel] [RFC proxmox-backup-qemu 4/6] lint fix: explicitly drop Box Fabian Grünbichler
2022-12-12 12:05 ` [pbs-devel] [PATCH proxmox-backup-qemu 5/6] update edition to 2021 Fabian Grünbichler
2022-12-12 12:05 ` [pbs-devel] [PATCH proxmox-backup-qemu 6/6] bump version to 1.3.2-1 and update symbols file Fabian Grünbichler
2022-12-12 14:14 ` [pbs-devel] applied-series: [PATCH proxmox-backup-qemu 0/6] update to current PBS/dependencies Wolfgang Bumiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221212134129.2125759-1-f.gruenbichler@proxmox.com \
    --to=f.gruenbichler@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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