[pbs-devel] [PATCH proxmox-backup v2 0/3] add rest_server example
Dominik Csapak
d.csapak at proxmox.com
Tue Sep 28 11:11:49 CEST 2021
adds a rest_server example to the proxmox-rest-server crate.
changes from v1:
* added patches so we can remove the (now) unused srt/tools/async_io.rs.
this enables us to don't have any dependencies on the top-level crate
for the example, and we can move it into proxmox-rest-server
* use hypers AddrStream for the example
Dominik Csapak (3):
rest-server: use hypers AddrStream for proxmox-backup-api
remove tools/async_io.rs
examples: add example for a simple rest server with a small api
proxmox-rest-server/Cargo.toml | 5 +
proxmox-rest-server/examples/rest_server.rs | 219 ++++++++++++++++++++
proxmox-rest-server/src/rest.rs | 18 +-
src/bin/proxmox-backup-api.rs | 3 +-
src/tools/async_io.rs | 83 --------
src/tools/mod.rs | 1 -
6 files changed, 234 insertions(+), 95 deletions(-)
create mode 100644 proxmox-rest-server/examples/rest_server.rs
delete mode 100644 src/tools/async_io.rs
--
2.30.2
More information about the pbs-devel
mailing list