Wolfgang Bumiller
c7224c5f67
bump proxmox-compression to 0.1.2-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-05 13:46:38 +02:00
Wolfgang Bumiller
ff86aa5f8a
compression: more cleanups
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-05 13:23:14 +02:00
Wolfgang Bumiller
2d37cd92e0
compression: indentation cleanup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-05 12:17:04 +02:00
Wolfgang Bumiller
cc6e5d7372
compression: minor cleanup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-05 12:13:38 +02:00
Dominik Csapak
6e989a1c29
proxmox-compression: add 'tar_directory'
...
similar to 'zip_directory', this is intended to tar a local directory,
e.g. when we're in a restore vm.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-07-05 12:12:02 +02:00
Dominik Csapak
38db37dc5f
proxmox-compression: make ZstdEncoder stream a bit more generic
...
by not requiring the 'anyhow::Error' type from the source, but only
that it implements 'Into<Error>'. This way, we can also accept a stream
that produces e.g. an io::Error
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-07-05 12:11:57 +02:00
Fabian Grünbichler
b5accff750
bump proxmox-http to 0.6.3-1
2022-06-30 12:42:18 +02:00
Fabian Grünbichler
bd1f9f103e
http: implement HttpClient for SimpleHttp
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-30 12:42:17 +02:00
Fabian Grünbichler
3c0486be50
http: add HttpClient trait
...
gated behind feature "client-trait"
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-30 12:42:12 +02:00
Fabian Grünbichler
94456ee4b1
http: move TLS helper to client feature
...
it's only used there and pulls in hyper and tokio, which we don't
want/need in http-helpers.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-29 10:32:44 +02:00
Fabian Grünbichler
210d4fdb68
http: take over json_object_to_query
2022-06-29 10:32:44 +02:00
Fabian Grünbichler
4393217633
bump proxmox-serde to 0.1.1
2022-06-29 10:32:44 +02:00
Fabian Grünbichler
b239b56999
serde: take over to/write_canonical_json
...
from PBS' tools module, and feature-guard via optional `serde_json`
dependency.
2022-06-29 10:32:44 +02:00
Fabian Grünbichler
f505240065
cargo fmt
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-29 10:32:29 +02:00
Wolfgang Bumiller
0d30720907
http: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-29 10:14:33 +02:00
Wolfgang Bumiller
064791e565
section-config: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-29 10:11:28 +02:00
Wolfgang Bumiller
7b1aad429f
api-macro: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-29 10:10:07 +02:00
Wolfgang Bumiller
30901c60f5
compression: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-29 10:08:49 +02:00
Wolfgang Bumiller
b06b4c7426
lang: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-29 10:06:57 +02:00
Wolfgang Bumiller
1fca7b715d
time: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-29 10:06:20 +02:00
Wolfgang Bumiller
b1a5daef61
sys: clippy fixups
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-29 09:58:34 +02:00
Wolfgang Bumiller
8f769a3996
bump proxmox-sys to 0.3.1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-29 09:41:36 +02:00
Dominik Csapak
1e2aa3eea4
partially fix #2915 : proxmox-sys: scandir: stat if file_type is unknown
...
when using readdir/getdents the file type might be 'DT_UNKNOWN'
(depending on the filesystem). Do a fstatat in that case to
get the file type. Since maybe the callback wants to do
a stat anyway, pass it there (if done)
adds two new helpers:
'file_type_from_file_stat': uses a FileStat struct to get the file type
'get_file_type': calls fstatat to determine the file_type
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-29 09:34:34 +02:00
Wolfgang Bumiller
09032fb88c
bump proxmox-router to 1.2.4-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-21 10:40:05 +02:00
Wolfgang Bumiller
d934c79d4c
router: restrict 'env_logger' dep to 'cli' feature
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-21 10:38:17 +02:00
Hannes Laimer
32b8ae982f
router: add init_cli_logger helper function
...
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-21 10:37:07 +02:00
Wolfgang Bumiller
41d8747de3
metrics: check in d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-13 10:03:48 +02:00
Wolfgang Bumiller
b446456aa5
bump proxmox-metrics to 0.2.0-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-13 09:56:05 +02:00
Dominik Csapak
e12230d543
proxmox-metrics: send_data_to_channels: change from slice to IntoIterator
...
which is a bit generic and allows us to use e.g. a map result to be
passed here
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-13 09:53:47 +02:00
Fabian Grünbichler
7667e549a5
bump proxmox-http to 0.6.2
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:33:12 +02:00
Fabian Grünbichler
05d3c3f412
http: bump proxmox-sys to 0.3.0
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:33:12 +02:00
Fabian Grünbichler
980d6b26df
proxmox-time: add missing 1.1.3 change
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:33:12 +02:00
Fabian Grünbichler
29c051f5f8
bump proxmox-router to 1.2.3
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:33:12 +02:00
Fabian Grünbichler
8cb1a99934
bump proxmox-schema to 1.3.3
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:33:12 +02:00
Fabian Grünbichler
f7c9738ead
bump proxmox-shared-memory to 0.2.1
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:33:12 +02:00
Fabian Grünbichler
e3232f2fe3
shared-memory: bump proxmox-sys to 0.3.0
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:33:12 +02:00
Fabian Grünbichler
9dd4134052
bump proxmox-sys to 0.3.0
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:33:12 +02:00
Fabian Grünbichler
97fd3a0a14
sys: feature-gate logrotate (and zstd)
...
it's not needed everywhere we pull in proxmox-sys.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:08:37 +02:00
Fabian Grünbichler
a3efe0b3dc
bump rustyline to 9
...
it works with nix 0.24
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 13:34:09 +02:00
Fabian Grünbichler
f8b19c2e22
proxmox-shared-memory: fix nix 0.24 compat in test
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 13:34:09 +02:00
Wolfgang Bumiller
abf5aedc54
update proxmox-router to nix 0.24.1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-02 13:34:09 +02:00
Wolfgang Bumiller
92069b224d
update proxmox-schema to nix 0.24.1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-02 13:34:09 +02:00
Wolfgang Bumiller
bd0a7cb223
update proxmox-shared-memory to nix 0.24.1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-02 13:34:09 +02:00
Wolfgang Bumiller
376af82be7
update proxmox-sys to nix 0.24.1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-02 13:34:09 +02:00
Wolfgang Bumiller
28c85a828e
proxmox-serde: move serde_json to dev-dependencies
...
it's only used in doctests
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-02 13:18:03 +02:00
Wolfgang Bumiller
f7da6ee7d4
bump proxmox-schema to 1.3.2
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-02 10:14:23 +02:00
Wolfgang Bumiller
d68a755536
schema: drop some commented out lines
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-02 10:14:23 +02:00
Wolfgang Bumiller
3facb7b455
router: clippy fixups
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-02 10:10:01 +02:00
Wolfgang Bumiller
532140de86
schema: bump api macro dep to 1.0.3
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-05-31 09:43:59 +02:00
Wolfgang Bumiller
9079afc831
schema: clippy fixups
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-05-31 09:42:25 +02:00