Shannon Sterz
d980c2229b
tree-wide: remove clone calls on types that are Copy
...
this resolves a clippy lint that checks that `clone()` isn't called on
`Copy` types as that is unnecessary [1].
[1]:
https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
2025-03-06 15:12:16 +01:00
Thomas Lamprecht
f4868ff519
tree-wide: check in d/control meta changes for newer debcargo
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-26 14:44:33 +01:00
Wolfgang Bumiller
d6e86d670b
tree-wide: unify workspace inherited attributes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-09-20 08:42:45 +02:00
Wolfgang Bumiller
01947a9802
shared-cache: bump to 0.1.0-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-08-09 12:59:09 +02:00
Wolfgang Bumiller
7c6701aab9
shared-cache: remove unused dependency on proxmox-schema
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-08-09 12:57:42 +02:00
Wolfgang Bumiller
c352cb87a0
shared-cache: group and sort dependencies
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-08-09 12:56:30 +02:00
Wolfgang Bumiller
c66e5432e7
shared-cache: minor style adaptation
...
(more concise & readable)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-08-09 11:10:48 +02:00
Lukas Wagner
846e85ed2e
cache: add benchmark example
...
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-08-09 11:01:30 +02:00
Lukas Wagner
0febb5045a
cache: add new crate 'proxmox-shared-cache'
...
This crate contains a file-backed, rotating cache.
The cache should be safe to be accessed from multiple processes at
once.
The cache stores the value at the provided path.
If `keep_old` is >0, the cache will keep up to `keep_old` versions
around which can be queried via the `get_last` method.
The value and its history are stored in the same file,
each generation represented by a single line of JSON.
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-08-09 11:01:30 +02:00