]> git.proxmox.com Git - proxmox.git/log
proxmox.git
2 years agoschema: rustfmt
Thomas Lamprecht [Sun, 10 Apr 2022 10:42:09 +0000 (12:42 +0200)]
schema: rustfmt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agolang: rustfmt
Thomas Lamprecht [Sun, 10 Apr 2022 10:41:44 +0000 (12:41 +0200)]
lang: rustfmt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agohttp: rustfmt
Thomas Lamprecht [Sun, 10 Apr 2022 10:41:21 +0000 (12:41 +0200)]
http: rustfmt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agorouter: rustfmt
Thomas Lamprecht [Sun, 10 Apr 2022 10:40:39 +0000 (12:40 +0200)]
router: rustfmt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoshared memory: rustfmt
Thomas Lamprecht [Sun, 10 Apr 2022 10:37:38 +0000 (12:37 +0200)]
shared memory: rustfmt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agotfa: rustfmt
Thomas Lamprecht [Sun, 10 Apr 2022 10:34:41 +0000 (12:34 +0200)]
tfa: rustfmt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agotime: rustfmt
Thomas Lamprecht [Sun, 10 Apr 2022 10:33:56 +0000 (12:33 +0200)]
time: rustfmt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agouuid: rustfmt
Thomas Lamprecht [Sun, 10 Apr 2022 10:32:32 +0000 (12:32 +0200)]
uuid: rustfmt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoupdate gitignore
Thomas Lamprecht [Sun, 10 Apr 2022 10:29:03 +0000 (12:29 +0200)]
update gitignore

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agotfa: serde tools: improve variance and dropck
Wolfgang Bumiller [Tue, 22 Mar 2022 11:29:59 +0000 (12:29 +0100)]
tfa: serde tools: improve variance and dropck

`FoldSeqVisitor` doesn't actually own a `T` and therefore
cannot drop a `T`, we only use it via the `Fn(&mut Out, T)`,
so use `fn(T)` in the `PhantomData` to keep `T`
contravariant.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: add another test case
Wolfgang Bumiller [Wed, 9 Mar 2022 13:29:53 +0000 (14:29 +0100)]
schema: add another test case

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: don't accept unterminated quoted strings
Wolfgang Bumiller [Wed, 9 Mar 2022 12:41:09 +0000 (13:41 +0100)]
schema: don't accept unterminated quoted strings

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: factor out string verify fn and improve docs
Wolfgang Bumiller [Fri, 4 Mar 2022 13:51:16 +0000 (14:51 +0100)]
schema: factor out string verify fn and improve docs

We'll need to name the type when we add more perl bindings.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump schema to 1.3.0-1
Wolfgang Bumiller [Fri, 4 Mar 2022 08:47:09 +0000 (09:47 +0100)]
bump schema to 1.3.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodrop param_bail test
Wolfgang Bumiller [Fri, 4 Mar 2022 08:44:50 +0000 (09:44 +0100)]
drop param_bail test

it's not actually testing anything useful

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-schema: add convenience macros for ParameterError
Dominik Csapak [Thu, 3 Mar 2022 14:54:00 +0000 (15:54 +0100)]
proxmox-schema: add convenience macros for ParameterError

with two variants:

(expr, expr) => assumes that the second is an 'Error'
(expr, (tt)+) => passes the tt through anyhow::format_err

also added tests

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agomake property_string module public
Wolfgang Bumiller [Tue, 1 Mar 2022 13:57:45 +0000 (14:57 +0100)]
make property_string module public

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: add const fn unwrap_*_schema/format methods
Wolfgang Bumiller [Tue, 22 Feb 2022 08:03:10 +0000 (09:03 +0100)]
schema: add const fn unwrap_*_schema/format methods

'unwrap_' because they will panic and as `const fn` since
panic in const fn is now possible

Note that const evaluation will only be triggered when
actually used in const context, so to ensure *compile time*
checks, use something like this:

    const FOO_SCHEMA: &AllOfSchema =
        SomeType::API_SCHEMA.unwrap_all_of_schema();
    then_use(FOO_SCHEMA);

or to use the list of enum values of an enum string type
with compile time checks:

    const LIST: &'static [EnumEntry] =
        AnEnumStringType::API_SCHEMA
            .unwrap_string_schema()
            .unwrap_format()
            .unwrap_enum_format();
    for values in LIST {
        ...
    }

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-metrics to 0.1.1-1
Wolfgang Bumiller [Tue, 22 Feb 2022 08:00:39 +0000 (09:00 +0100)]
bump proxmox-metrics to 0.1.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agometrics: bump async dep to 0.4
Wolfgang Bumiller [Tue, 22 Feb 2022 07:59:37 +0000 (08:59 +0100)]
metrics: bump async dep to 0.4

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-async to 0.4.0
Wolfgang Bumiller [Mon, 21 Feb 2022 13:18:51 +0000 (14:18 +0100)]
bump proxmox-async to 0.4.0

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-compression: update d/control
Wolfgang Bumiller [Mon, 21 Feb 2022 13:17:01 +0000 (14:17 +0100)]
proxmox-compression: update d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosplit out compression code into new crate 'proxmox-compression'
Dominik Csapak [Mon, 21 Feb 2022 10:39:16 +0000 (11:39 +0100)]
split out compression code into new crate 'proxmox-compression'

this removes quite a bit of dependecies of proxmox-async

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
[set proxmox-lang dep to 1.1]
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoformatting fixup
Wolfgang Bumiller [Mon, 21 Feb 2022 12:49:48 +0000 (13:49 +0100)]
formatting fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoworkspace: set proxmox-lang dep version to 1.1
Wolfgang Bumiller [Mon, 21 Feb 2022 12:45:42 +0000 (13:45 +0100)]
workspace: set proxmox-lang dep version to 1.1

to ensure the error macros are available

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-lang to 1.1.0-1
Wolfgang Bumiller [Mon, 21 Feb 2022 12:43:38 +0000 (13:43 +0100)]
bump proxmox-lang to 1.1.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agolang: remove io_assert
Wolfgang Bumiller [Mon, 21 Feb 2022 12:41:59 +0000 (13:41 +0100)]
lang: remove io_assert

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agomove io error helpers to proxmox-lang
Dominik Csapak [Mon, 21 Feb 2022 10:39:15 +0000 (11:39 +0100)]
move io error helpers to proxmox-lang

this removes proxmox_sys as a dependecy for proxmox-async

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-schema to 1.2.1
Wolfgang Bumiller [Thu, 17 Feb 2022 11:05:23 +0000 (12:05 +0100)]
bump proxmox-schema to 1.2.1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosupport quoted strings in property strings
Wolfgang Bumiller [Wed, 16 Feb 2022 13:39:17 +0000 (14:39 +0100)]
support quoted strings in property strings

This allows free form text to exist within property strings,
quoted, like:
    key="A value with \"quotes, also commas",key2=value2
or also:
    "the value for a default_key",key2=value2

And drop ';' as a key=value separator since those are meant
for arrays inside property strings...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: FromIterator lifetime fixup
Wolfgang Bumiller [Mon, 14 Feb 2022 10:20:48 +0000 (11:20 +0100)]
schema: FromIterator lifetime fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: impl FromIterator for ParameterError
Wolfgang Bumiller [Mon, 14 Feb 2022 08:46:18 +0000 (09:46 +0100)]
schema: impl FromIterator for ParameterError

for where we also have Extend impls

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: bump edition to 2021
Wolfgang Bumiller [Mon, 14 Feb 2022 08:45:38 +0000 (09:45 +0100)]
schema: bump edition to 2021

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-schema to 1.2.0-1
Wolfgang Bumiller [Fri, 11 Feb 2022 13:07:52 +0000 (14:07 +0100)]
bump proxmox-schema to 1.2.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: rustfmt
Wolfgang Bumiller [Fri, 11 Feb 2022 13:05:05 +0000 (14:05 +0100)]
schema: rustfmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: ParameterError convenience
Wolfgang Bumiller [Fri, 11 Feb 2022 12:44:50 +0000 (13:44 +0100)]
schema: ParameterError convenience

for ease of use implement these traits for ParameterError:
    * From<(&str, Error)>
    * From<(String, Error)>
    * Extend<(String, Error)>
    * Extend<(&str, Error)>
    * IntoIterator<Item = (String, Error)>

and add the following methods:
    * fn into_inner(self) -> Vec<(String, Error)>;

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-http: drop 'mut' on specialized request methods
Wolfgang Bumiller [Fri, 11 Feb 2022 07:55:32 +0000 (08:55 +0100)]
proxmox-http: drop 'mut' on specialized request methods

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-tfa: fully deserialize TfaChallenge
Wolfgang Bumiller [Tue, 8 Feb 2022 13:49:30 +0000 (14:49 +0100)]
proxmox-tfa: fully deserialize TfaChallenge

otherwise clients cannot use this...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-tfa: make TfaChallenge members public
Wolfgang Bumiller [Tue, 8 Feb 2022 13:36:51 +0000 (14:36 +0100)]
proxmox-tfa: make TfaChallenge members public

rust based *clients* may want/need access to it

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-async: rustfmt (again)
Fabian Grünbichler [Tue, 8 Feb 2022 13:52:42 +0000 (14:52 +0100)]
proxmox-async: rustfmt (again)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoproxmox-async: another clippy fixup
Fabian Grünbichler [Tue, 8 Feb 2022 13:33:50 +0000 (14:33 +0100)]
proxmox-async: another clippy fixup

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agomisc clippy fixes
Fabian Grünbichler [Tue, 8 Feb 2022 13:23:36 +0000 (14:23 +0100)]
misc clippy fixes

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoproxmox-async: clippy fixup
Wolfgang Bumiller [Tue, 8 Feb 2022 13:26:46 +0000 (14:26 +0100)]
proxmox-async: clippy fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoapi-macro: fix "Forgerty" typo
Stefan Sterz [Mon, 7 Feb 2022 13:54:15 +0000 (14:54 +0100)]
api-macro: fix "Forgerty" typo

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
2 years agohttp: websocket: code cleanup
Thomas Lamprecht [Fri, 4 Feb 2022 16:16:36 +0000 (17:16 +0100)]
http: websocket: code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agohttp: websocket: drop Text frame auto-detection from docs
Thomas Lamprecht [Fri, 4 Feb 2022 16:15:46 +0000 (17:15 +0100)]
http: websocket: drop Text frame auto-detection from docs

was forgotten in commit 232d87531e4d86412144285b079e78a201eac5c2 when
dropping the bogus frame auto detection

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agohttp: websocket: avoid modulo for power of 2
Thomas Lamprecht [Fri, 4 Feb 2022 16:12:05 +0000 (17:12 +0100)]
http: websocket: avoid modulo for power of 2

even for the small cases this can matter

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agotfa: fix hyperlink in doc comment
Thomas Lamprecht [Fri, 4 Feb 2022 16:06:02 +0000 (17:06 +0100)]
tfa: fix hyperlink in doc comment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agohttp: websocket: rustfmt and small cleanups
Thomas Lamprecht [Fri, 4 Feb 2022 16:05:45 +0000 (17:05 +0100)]
http: websocket: rustfmt and small cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agohttp: websocket: doc wording cleanups
Thomas Lamprecht [Fri, 4 Feb 2022 16:04:50 +0000 (17:04 +0100)]
http: websocket: doc wording cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoproxmox-http: websocket: fix comment about callback
Dominik Csapak [Fri, 4 Feb 2022 09:52:40 +0000 (10:52 +0100)]
proxmox-http: websocket: fix comment about callback

this was once a callback in an early version, but it changed to a
channel, but the comment was not updated

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agometrics: cleanup
Wolfgang Bumiller [Thu, 3 Feb 2022 12:39:56 +0000 (13:39 +0100)]
metrics: cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-metrics: re-bump version for first upload
Thomas Lamprecht [Thu, 3 Feb 2022 12:11:38 +0000 (13:11 +0100)]
proxmox-metrics: re-bump version for first upload

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agometrics: use builder pattern for adding tags
Wolfgang Bumiller [Wed, 2 Feb 2022 14:20:29 +0000 (15:20 +0100)]
metrics: use builder pattern for adding tags

Rather than going from a list of `(&str, &str)` tuples to a
`HashMap<String, String>`, add a `.tag()` builder method
and use `Cow` behind the scenes to efficiently allow the
caller to choose between a static literal and a `String`
value.

Previously the methods forced `&str` slices and then
always-copied those into `String`s even if the caller could
just *move* it.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agometrics: more doc fixups
Wolfgang Bumiller [Wed, 2 Feb 2022 13:30:14 +0000 (14:30 +0100)]
metrics: more doc fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodoc fixups
Wolfgang Bumiller [Wed, 2 Feb 2022 13:14:09 +0000 (14:14 +0100)]
doc fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-async to 0.3.3
Wolfgang Bumiller [Wed, 2 Feb 2022 11:58:13 +0000 (12:58 +0100)]
bump proxmox-async to 0.3.3

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-metrics: implement metrics server client code
Dominik Csapak [Wed, 2 Feb 2022 09:50:11 +0000 (10:50 +0100)]
proxmox-metrics: implement metrics server client code

influxdb (udp + http(s)) only for now

general architecture looks as follows:

the helper functions influxdb_http/udp start a tokio task and return
a Metrics struct, that can be used to send data and wait for the tokio
task. if the struct is dropped, the task is canceled.

so it would look like this:
  let metrics = influxdb_http(..params..)?;
  metrics.send_data(...).await?;
  metrics.send_data(...).await?;
  metrics.join?;

on join, the sending part of the channel will be dropped and thus
flushing the remaining data to the server

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
[renamed proxmox_async::io::udp -> proxmox_async::net::udp]
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox_async: rustfmt
Wolfgang Bumiller [Wed, 2 Feb 2022 11:55:01 +0000 (12:55 +0100)]
proxmox_async: rustfmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox_async: move io::udp to net::udp
Wolfgang Bumiller [Wed, 2 Feb 2022 11:47:06 +0000 (12:47 +0100)]
proxmox_async: move io::udp to net::udp

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-async: add udp::connect() helper
Dominik Csapak [Wed, 2 Feb 2022 09:50:10 +0000 (10:50 +0100)]
proxmox-async: add udp::connect() helper

so that we do not have to always check the target ipaddr family manually

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-sys: add FileSystemInformation struct and helper
Dominik Csapak [Mon, 17 Jan 2022 10:48:17 +0000 (11:48 +0100)]
proxmox-sys: add FileSystemInformation struct and helper

code mostly copied from proxmox-backups 'disk_usage'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoproxmox-sys: make some structs serializable
Dominik Csapak [Mon, 17 Jan 2022 10:48:16 +0000 (11:48 +0100)]
proxmox-sys: make some structs serializable

we already depend on serde anyway, and this makes gathering structs a
bit more comfortable

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agorustfmt
Wolfgang Bumiller [Thu, 20 Jan 2022 09:12:02 +0000 (10:12 +0100)]
rustfmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-async to 0.3.2
Wolfgang Bumiller [Thu, 20 Jan 2022 09:09:11 +0000 (10:09 +0100)]
bump proxmox-async to 0.3.2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agodrop RawWaker usage
Wolfgang Bumiller [Thu, 20 Jan 2022 09:05:07 +0000 (10:05 +0100)]
drop RawWaker usage

this was also leaking a refcount before, this is fixed now

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-async: bump version to 0.3.1
Thomas Lamprecht [Wed, 12 Jan 2022 14:47:12 +0000 (15:47 +0100)]
proxmox-async: bump version to 0.3.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3618: proxmox-async: zip: add conditional EFS flag to zip files
Dominik Csapak [Mon, 10 Jan 2022 11:23:41 +0000 (12:23 +0100)]
fix #3618: proxmox-async: zip: add conditional EFS flag to zip files

this flag marks the file names as 'UTF-8' encoded if they are valid UTF-8.

By default, encoding of file names in zips are defined as code page 437,
but we save the filenames as bytes (like in linux fs).

For linux systems this would not be a problem since most tools
simply use the filenames as bytes, but for the zip utility under
windows it's important since NTFS uses UTF-16 for file names.

For filenames that are valid UTF-8, they are decoded as UTF-8 everywhere
correctly (Linux as UTF-8 bytes, Windows as correct UTF-16 sequence) and
for other filenames with a high bit set, it depends on the OS/Software
what exactly happens. Some cases below:

* Windows + Built-in/7zip: decoded as CP437
* Debian + zip: Bytes taken as-is
* Debian + 7z: interpreted as Windows1252, decoded as UTF-8

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2 years agoasync: track d/control
Fabian Grünbichler [Thu, 30 Dec 2021 10:07:43 +0000 (11:07 +0100)]
async: track d/control

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoproxmox-serde: track d/control
Fabian Grünbichler [Thu, 30 Dec 2021 10:07:25 +0000 (11:07 +0100)]
proxmox-serde: track d/control

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoshared-memory: track d/control
Fabian Grünbichler [Thu, 30 Dec 2021 10:06:56 +0000 (11:06 +0100)]
shared-memory: track d/control

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agotfa: ignore uncompilable doctest
Fabian Grünbichler [Thu, 30 Dec 2021 10:04:39 +0000 (11:04 +0100)]
tfa: ignore uncompilable doctest

the doctest code uses non-public `fold`, up for re-evaluation if this
gets moved to proxmox-serde and made public..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoshared-memory: make tests integration tests
Fabian Grünbichler [Thu, 30 Dec 2021 10:02:54 +0000 (11:02 +0100)]
shared-memory: make tests integration tests

same as with sys/xattr, these touch files, so should use a tmpdir
provided by cargo, which requires them being integration tests.

if the tmpdir doesn't support O_TMPFILE (like overlayfs), the test is
not run (unfortunately, there is no way to indicate this via the test
result like with other test frameworks).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agosys: make xattr tests integration tests
Fabian Grünbichler [Thu, 30 Dec 2021 10:01:19 +0000 (11:01 +0100)]
sys: make xattr tests integration tests

these touch files, so should use the cargo-provided tmp dir, but that is
only available to benchmarks and integration tests, not unit tests.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd missing library dependencies
Fabian Grünbichler [Thu, 30 Dec 2021 10:00:13 +0000 (11:00 +0100)]
add missing library dependencies

without these, the generated d/control files are incomplete and builds
fail on clean systems.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoswitch to new schema verify methods
Fabian Grünbichler [Wed, 29 Dec 2021 09:53:25 +0000 (10:53 +0100)]
switch to new schema verify methods

the deprecated ones only forward to the new ones anyway..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoschema: fix deprecation warnings in tests
Wolfgang Bumiller [Fri, 17 Dec 2021 07:07:02 +0000 (08:07 +0100)]
schema: fix deprecation warnings in tests

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotime: fix tests
Wolfgang Bumiller [Fri, 17 Dec 2021 07:04:12 +0000 (08:04 +0100)]
time: fix tests

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: bump regex dep to 1.5
Wolfgang Bumiller [Thu, 16 Dec 2021 10:16:00 +0000 (11:16 +0100)]
schema: bump regex dep to 1.5

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-schema to 1.1.0-1
Wolfgang Bumiller [Thu, 16 Dec 2021 10:05:15 +0000 (11:05 +0100)]
bump proxmox-schema to 1.1.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: deny unsafe_op_in_unsafe_fn
Wolfgang Bumiller [Thu, 16 Dec 2021 09:17:41 +0000 (10:17 +0100)]
schema: deny unsafe_op_in_unsafe_fn

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoschema: make verification functions methods
Wolfgang Bumiller [Thu, 16 Dec 2021 09:16:55 +0000 (10:16 +0100)]
schema: make verification functions methods

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-router: fix glob-import of anyhow
Thomas Lamprecht [Mon, 13 Dec 2021 07:13:05 +0000 (08:13 +0100)]
proxmox-router: fix glob-import of anyhow

will break usage of the `Result::Ok()' with anyhow 1.0.49+ as that
added a new Ok helper, so a glob-import would make that shadow the
core one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoproxmox-sys: fix glob-import of anyhow
Thomas Lamprecht [Mon, 13 Dec 2021 06:46:29 +0000 (07:46 +0100)]
proxmox-sys: fix glob-import of anyhow

will break usage of the `Result::Ok()' with anyhow 1.0.49+ as that
added a new Ok helper, so a glob-import would make that shadow the
core one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoschema: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:53:18 +0000 (11:53 +0100)]
schema: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoshared-memory: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:52:58 +0000 (11:52 +0100)]
shared-memory: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoserde: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:52:39 +0000 (11:52 +0100)]
serde: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotfa: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:51:22 +0000 (11:51 +0100)]
tfa: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoio: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:51:15 +0000 (11:51 +0100)]
io: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoapi-macro: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:51:09 +0000 (11:51 +0100)]
api-macro: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agouuid: clippy fixes
Wolfgang Bumiller [Tue, 7 Dec 2021 10:50:27 +0000 (11:50 +0100)]
uuid: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoshared-memory: clippy fixes (docs)
Wolfgang Bumiller [Tue, 7 Dec 2021 10:49:23 +0000 (11:49 +0100)]
shared-memory: clippy fixes (docs)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agohttp: clippy fixes
Wolfgang Bumiller [Tue, 7 Dec 2021 10:45:52 +0000 (11:45 +0100)]
http: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosys: another minor clippy fix
Wolfgang Bumiller [Tue, 7 Dec 2021 10:43:28 +0000 (11:43 +0100)]
sys: another minor clippy fix

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosys: formatting
Wolfgang Bumiller [Tue, 7 Dec 2021 10:41:47 +0000 (11:41 +0100)]
sys: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosys: clippy fixes
Wolfgang Bumiller [Tue, 7 Dec 2021 10:41:25 +0000 (11:41 +0100)]
sys: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-uuid: fix wasm32 build
Dietmar Maurer [Fri, 3 Dec 2021 08:33:02 +0000 (09:33 +0100)]
proxmox-uuid: fix wasm32 build

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agobump proxmox-uuid to version 1.0.1-1
Dietmar Maurer [Fri, 3 Dec 2021 08:19:50 +0000 (09:19 +0100)]
bump proxmox-uuid to version 1.0.1-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-uuid: implement uuid on target wasm
Dietmar Maurer [Thu, 2 Dec 2021 13:16:21 +0000 (14:16 +0100)]
proxmox-uuid: implement uuid on target wasm

2 years agoAllow to compile on wasm32 target
Dietmar Maurer [Wed, 1 Dec 2021 10:28:32 +0000 (11:28 +0100)]
Allow to compile on wasm32 target

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>