Fabian Grünbichler
cbaa3b45bc
http: make clippy happy
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:43:28 +02:00
Fabian Grünbichler
5153e68cab
http: takeover websocket feature from proxmox
...
adapted: use statements for proxmox::*, use statements for doctests
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:43:19 +02:00
Fabian Grünbichler
7b7e1413ff
meta: add empty proxmox-http sub-crate
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:42:16 +02:00
Fabian Grünbichler
ebeaf483ab
proxmox: add missing +router -> futures dep
...
this is shadowed by the websocket feature being enabled by default.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-05-17 09:41:26 +02:00
Thomas Lamprecht
10d2453ed3
d/control: update deb-cargo generated file
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 12:17:09 +02:00
Thomas Lamprecht
91e7604ddc
proxmox: bump version to 0.11.4-1
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 12:11:48 +02:00
Thomas Lamprecht
89d14b4729
buildsys: upload to both, buster and bullseye for now
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 12:08:50 +02:00
Thomas Lamprecht
92d7292920
d/control: update
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 11:43:02 +02:00
Thomas Lamprecht
40e232f4d6
drop bogus tests
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 11:36:52 +02:00
Dominik Csapak
02acce2dd8
proxmox/tools/email: adapt tests to changes to sendmail
...
with test1/3 we only tested the regex, which is now gone
transform the tests to valid emails, so we test this also
and rename them to know what they should test
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-14 10:55:46 +02:00
Dominik Csapak
a7f4002306
fix #3302 : allow for more characters for email
...
by removing the regex check here, that is responsibility of the caller
this is ok since we pass the args directly and not via shell, so
command injection should not be possible
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-12 21:18:28 +02:00
Dietmar Maurer
fa3b5374ed
api_type_macros.rs: disable failing doctest (set it to ignore instead of no_run)
2021-05-05 08:03:35 +02:00
Dietmar Maurer
64ac45ba91
api_type_macros.rs: disable failing doctest
2021-05-05 07:56:53 +02:00
Dietmar Maurer
5a3ac01b2e
bump proxmox version to 0.11.3-1
2021-05-05 07:47:25 +02:00
Wolfgang Bumiller
86ad53256a
add api_string_type macro
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-05 07:39:24 +02:00
Wolfgang Bumiller
e3a78d6354
simplify const_regex macro
...
The :vis macro matcher has been stable for a long time now.
Let's use it, and replace the recursion with a plus pattern.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-05-05 07:38:37 +02:00
Dietmar Maurer
9c786006df
bump proxmox version to 0.11.2-1
2021-05-03 08:35:03 +02:00
Dominik Csapak
77b85f7dc1
proxmox/api/cli: add extract_output_format
...
just getting it is not enough, sometimes we want it to remove from
params (if possble) too
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-03 08:01:51 +02:00
Wolfgang Bumiller
4dda9b5865
proxmox: constify CreateOptions methods and add helpers
...
Adds convenience helpers `.owner_root()`.
Unfortunately for the group equivalent `nix` needs to have
const `Gid` constructors...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-21 12:00:57 +02:00
Wolfgang Bumiller
6eef946e20
websocket: remove AsyncReadExt
...
style wise, bounds should refer to AsyncRead instead
also we don't actually use any of the Ext methods
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-15 13:14:55 +02:00
Wolfgang Bumiller
31402407c4
bump proxmox to 0.11.1-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-14 12:04:35 +02:00
Wolfgang Bumiller
6729d41188
bump api-macro to 0.3.4-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-14 12:00:01 +02:00
Wolfgang Bumiller
cde2863a68
api-macro: fix Updatable path in generated derive attribute
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-14 11:58:32 +02:00
Wolfgang Bumiller
6fc95b8628
add proxmox::tools::serde::string_as_base64url_nopad
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-14 11:32:24 +02:00
Wolfgang Bumiller
c735b4bde0
api: enable Updater for usize, isize, f32, f64, char
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-04-07 10:48:46 +02:00
Wolfgang Bumiller
248335df36
api-macro: fix dev-dep versions
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-03-24 11:20:23 +01:00
Wolfgang Bumiller
1fce0ff41d
bump proxmox to 0.11.0
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-25 09:21:14 +01:00
Wolfgang Bumiller
53146006b5
fmt
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-25 09:16:44 +01:00
Wolfgang Bumiller
8ce46932d6
use Send+Sync on dyn ObjectSchemaType
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-25 09:16:38 +01:00
Wolfgang Bumiller
42eb380917
support AllOfSchemas in section_config
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-24 14:48:21 +01:00
Wolfgang Bumiller
e2975598ad
get rid of associated type in ObjectSchemaType trait
...
The AllOfProperties Iterator is capable of also being the
Iterator for the regular ObjectSchemas by simply filling it
like it was the "last" object type in an AllOf.
This makes the ObjectSchemaType trait more usable later.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-24 14:43:21 +01:00
Wolfgang Bumiller
adcbf7cab8
AllOfSchema support in parse_property_string
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-24 13:40:50 +01:00
Wolfgang Bumiller
12a6846a03
fix AllOfSchema::lookup to allow nesting
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-24 13:34:06 +01:00
Wolfgang Bumiller
bd4f9a313b
proxmox: bump api-macro dep to 0.3.3
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-24 09:38:32 +01:00
Wolfgang Bumiller
1f6a2a66c9
bump api-macro to 0.3.3-1
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-24 09:37:30 +01:00
Wolfgang Bumiller
857b8ab2b9
Updater: take serde renames into account
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-24 09:21:52 +01:00
Wolfgang Bumiller
d3636d45d9
bump proxmox to 0.10.7
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-23 14:45:14 +01:00
Wolfgang Bumiller
e2d9f676a4
rustfmt
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-23 14:35:12 +01:00
Wolfgang Bumiller
5c120f6abe
proxmox::tools: rustfmt
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-23 14:34:48 +01:00
Wolfgang Bumiller
866ec28116
proxmox::test: rustfmt
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-23 14:34:22 +01:00
Wolfgang Bumiller
944ea1e8b7
remove u2f example for now
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-23 14:33:46 +01:00
Wolfgang Bumiller
69a51c9af0
minor cleanup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-23 14:33:08 +01:00
Wolfgang Bumiller
0d68daab86
proxmox::test::io: properly forward flush
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-23 14:31:02 +01:00
Dominik Csapak
e0dad25af4
proxmox: add sparse_copy(_async) to tools::io
...
this is able to seek the target instead of writing zeroes, which
generates sparse files where supported
also add tests for it
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-02-23 14:28:54 +01:00
Dominik Csapak
840e5fda89
proxmox: add test/{io, task} modules
...
contains:
* AsyncBlocking{Reader,Writer} for dummy async code
by wrapping a 'standard reader/writer'
* poll_result_once for pulling a future once (copied from pxar)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-02-23 14:28:50 +01:00
Dietmar Maurer
be03039ba9
bump proxmox version to 0.10.6-1
2021-02-21 15:49:40 +01:00
Dietmar Maurer
69ab6bd69d
make get_property_string_type_text public
...
We need that to generate nice docs.
2021-02-21 15:44:13 +01:00
Dietmar Maurer
7212fd3290
bump proxmox version to 0.10.5
2021-02-11 10:46:11 +01:00
Dietmar Maurer
133209c14a
implement dump_section_config
2021-02-11 10:44:04 +01:00
Dietmar Maurer
67c7699b23
rename dump_api_parameters to dump_properties
...
And do not dump object description automatically.
2021-02-11 10:32:39 +01:00