mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-04 13:51:33 +00:00
![]() this patch introduces a custom WebSocketError, so that we can detect errors in the websocket protocol and react to it in the right way the channel now sends a Result<(OpCode, Box<[u8]>), WebSocketError> so that we can either react to a control frame, or react to an errornous data stream (which means sending a close frame with the appropriate error code) while at it, change FrameHeader::try_from_bytes to return Result<Option<FrameHeader>, WebSocketError> instead of a nested Result with the *guessed* remaining size. This was neither used by us, nor was it really meaningful, since this can change during the decode every time new data is read (extensions, mask, payload length, etc.) so simply returning an Option is enough information for us Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> |
||
---|---|---|
.cargo | ||
proxmox | ||
proxmox-api-macro | ||
proxmox-sortable-macro | ||
.gitignore | ||
build.sh | ||
Cargo.toml | ||
Makefile | ||
README.rst | ||
rustfmt.toml |
Local cargo config ================== This repository ships with a ``.cargo/config`` that replaces the crates.io registry with packaged crates located in ``/usr/share/cargo/registry``. A similar config is also applied building with dh_cargo. Cargo.lock needs to be deleted when switching between packaged crates and crates.io, since the checksums are not compatible. To reference new dependencies (or updated versions) that are not yet packaged, the dependency needs to point directly to a path or git source. Steps for Releases ================== - Cargo.toml updates: - Bump all modified crate versions. - Update all the other crates' Cargo.toml to depend on the new versions if required, then bump their version as well if not already done. - Update debian/changelog files in all the crates updated above. - Build packages with `make deb`.