[pbs-devel] [RFC PATCH proxmox 2/4] promxox-router: add SerializableReturn Trait
Dietmar Maurer
dietmar at proxmox.com
Fri Feb 18 09:21:14 CET 2022
I guess we do not want to depend on proxmox-async here - this adds to
many unnecessary dependencies!
On 2/17/22 10:40, Dominik Csapak wrote:
> this will be useful as a generic return type for api calls which
> must implement Serialize.
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> proxmox-router/Cargo.toml | 2 +
> proxmox-router/src/lib.rs | 2 +
> proxmox-router/src/serializable_return.rs | 62 +++++++++++++++++++++++
> 3 files changed, 66 insertions(+)
> create mode 100644 proxmox-router/src/serializable_return.rs
>
> diff --git a/proxmox-router/Cargo.toml b/proxmox-router/Cargo.toml
> index 28616d8..d460772 100644
> --- a/proxmox-router/Cargo.toml
> +++ b/proxmox-router/Cargo.toml
> @@ -15,6 +15,7 @@ hyper = { version = "0.14", features = [ "full" ] }
> nix = "0.19.1"
> percent-encoding = "2.1"
> serde_json = "1.0"
> +serde = "1.0"
> unicode-width ="0.1.8"
>
> # cli:
> @@ -24,6 +25,7 @@ libc = { version = "0.2", optional = true }
>
> proxmox-lang = { path = "../proxmox-lang", version = "1.0" }
> proxmox-schema = { path = "../proxmox-schema", version = "1.1" }
> +proxmox-async = { path = "../proxmox-async", version = "0.3" }
More information about the pbs-devel
mailing list