Wolfgang Bumiller
1185458719
serde: formatting
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:52:39 +01:00
Wolfgang Bumiller
dddfa1164b
tfa: formatting
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:51:22 +01:00
Wolfgang Bumiller
a774958239
io: formatting
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:51:15 +01:00
Wolfgang Bumiller
d871d6849b
api-macro: formatting
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:51:09 +01:00
Wolfgang Bumiller
5e490dd7a0
uuid: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:50:27 +01:00
Wolfgang Bumiller
d851078eae
shared-memory: clippy fixes (docs)
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:49:23 +01:00
Wolfgang Bumiller
179515c5b2
http: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:45:52 +01:00
Wolfgang Bumiller
59986f1195
sys: another minor clippy fix
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:43:28 +01:00
Wolfgang Bumiller
b213dbb7c8
sys: formatting
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:42:53 +01:00
Wolfgang Bumiller
c280f73793
sys: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-07 11:42:53 +01:00
Dietmar Maurer
e888fa5181
proxmox-uuid: fix wasm32 build
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-12-03 09:33:02 +01:00
Dietmar Maurer
b39e6ac669
bump proxmox-uuid to version 1.0.1-1
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-12-03 09:21:17 +01:00
Dietmar Maurer
0dc3bcd1a5
proxmox-uuid: implement uuid on target wasm
2021-12-03 09:17:20 +01:00
Dietmar Maurer
165fa05290
Allow to compile on wasm32 target
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-12-03 08:52:54 +01:00
Dietmar Maurer
259e4b1441
update proxmox-time to version 1.1.2-1
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-12-02 10:38:06 +01:00
Dominik Csapak
6bdf5085dc
proxmox-time: calendar-events: parse 'UTC' timezone into calendarevent
...
like we do in pve. this breaks the (newly added) compute_next_event
method of CalendarEvent, but we can keep compatibilty with the
deprecated function
adapt the tests so that they add a ' UTC' by default
(so they can run reliably on any machine)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-02 10:32:53 +01:00
Fabian Grünbichler
50dc2daddb
fixup changelog entry
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-12-02 09:12:30 +01:00
Fabian Grünbichler
6bb932e604
use nix::unistd::fchown
...
instead of re-implementing it, now that we depend on >=0.19
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-12-02 09:04:55 +01:00
Fabian Grünbichler
1db9a5bc0e
clippy: allow manual_range_contains
...
we use it quite often in this module, and it's more readable when split.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-12-02 09:04:55 +01:00
Fabian Grünbichler
9c9b5c02b4
clippy: collapse match/if let/..
...
best viewed with `-w` ;)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-12-02 09:01:52 +01:00
Fabian Grünbichler
e303ad8605
clippy: misc fixes
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-12-02 09:00:52 +01:00
Fabian Grünbichler
b1c2250000
clippy: use matches!
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-12-02 08:59:27 +01:00
Fabian Grünbichler
a81b2672d8
clippy: remove unnecessary reference taking
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-12-02 08:58:10 +01:00
Fabian Grünbichler
0a0f3906b5
proxmox-router: bump to 1.1.1
...
for current anyhow compat
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-12-01 13:22:26 +01:00
Dietmar Maurer
63cecf8a69
bump proxmox-time version to 1.1.1-1
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-12-01 07:18:44 +01:00
Dominik Csapak
c77ab2c7e5
proxmox-time: time-span: implement FromStr
...
and deprecate 'parse_time_span'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 07:14:33 +01:00
Dominik Csapak
42420d3a5e
proxmox-time: calendar_events: implement FromStr
...
and deprecate 'parse_calendar_event'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 07:14:20 +01:00
Dominik Csapak
a96e9fb724
proxmox-time: calendar-events: make compute_next_event a method
...
and deprecated the standalone function
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 07:14:06 +01:00
Dominik Csapak
032787a6a3
proxmox-time: lib.rs: rustfmt
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 07:13:45 +01:00
Dominik Csapak
676146fd90
proxmox-time: move tests from time.rs to test.rs
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 07:13:36 +01:00
Dominik Csapak
22b3388500
proxmox-time: move TimeSpan into time_span.rs
...
and related parsing functions
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 07:13:23 +01:00
Dominik Csapak
6a680aac55
proxmox-time: move CalendarEvent into calendar_events.rs
...
and all relevant parsing functions as well
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 07:13:08 +01:00
Dominik Csapak
83cf350f04
proxmox-time: daily_duration.rs: rustfmt
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 07:12:51 +01:00
Dominik Csapak
78e1e8ce09
proxmox-time: move parse_daily_duration to daily_duration.rs
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 07:12:35 +01:00
Dominik Csapak
f61ee1372f
proxmox-time: split DateTimeValue into own file
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:55:51 +01:00
Dominik Csapak
07cc21bd5a
proxmox-time: move WeekDays into own file
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:55:32 +01:00
Dominik Csapak
a104c8fc41
proxmox-time: move common parse functions to parse_helpers
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:55:04 +01:00
Dominik Csapak
8e0fc66dfe
proxmox-time: calendar-events: make hour optional
...
to be compatible with our perl calendar events, we have to make hour optional
in that case we select every hour, so 'X' is the same as writing '*:X'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:54:32 +01:00
Dominik Csapak
8480b7b4ff
proxmox-time: calendar-events: implement repeated ranges
...
so that we can have e.g. '7..17/2:00' as timespec
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:53:55 +01:00
Wolfgang Bumiller
fc80f519f4
api-macro: add #[updater(type = "...")]
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-30 17:21:20 +01:00
Wolfgang Bumiller
e461be1c9f
api-macro: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-30 17:02:25 +01:00
Wolfgang Bumiller
60fa521095
time: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 14:56:31 +01:00
Wolfgang Bumiller
36e064d73a
io: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 14:51:26 +01:00
Wolfgang Bumiller
eac7ebfc55
sys: add back d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 11:35:39 +01:00
Wolfgang Bumiller
30e99fef5b
bump proxmox-sys to 0.2.2
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 11:33:42 +01:00
Wolfgang Bumiller
35ecf9a551
sys: deprecate the identity macro
...
to be removed with the next major version bump
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 11:31:39 +01:00
Wolfgang Bumiller
9dcc229491
sys: depend on sortable-macro 0.1.2
...
drops the requirement for the identity macro
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 11:30:06 +01:00
Wolfgang Bumiller
3891953724
proxmox-sys: fix a warning in io_bail_last macro
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 11:29:31 +01:00
Wolfgang Bumiller
6679005b4f
bump proxmox-tfa to 2.0.0-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-28 17:00:29 +01:00
Wolfgang Bumiller
d85ebbb464
tfa: clippy fixes
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-28 17:00:29 +01:00