Crates.io | now-proto-pdu |
lib.rs | now-proto-pdu |
version | 0.3.0 |
created_at | 2025-02-14 01:56:13.878237+00 |
updated_at | 2025-08-20 10:55:19.352509+00 |
description | NOW protocol PDU encoding and decoding |
homepage | https://github.com/Devolutions/now-proto |
repository | https://github.com/Devolutions/now-proto |
max_upload_size | |
id | 1555273 |
size | 155,767 |
This crate provides a Rust implementation of the NOW protocol encoding/decoding library.
#[no_std]
compatible. Requires alloc
.'static
and may allocate if optional
message is set..with_*
and .set_*
methods).bitfield
types should be avoied in the public API if incorrect usage could lead to
invalid PDUs. E.g. ExecData
's stdio stream flags are represented as a bitfield, but exactly
one of the flags should be set at a time. The public API should provide a safe way to set and
retrieve these flags. Channel capabilities flags on the other hand could all be set independently,
therefore it is safe to expose them in the public API.NOW_STRING
should not be exposed in the public API.u32
).Crate version is not tied to the protocol version (e.g. Introduction of breaking changes in the
crate API does not necessarily mean a protocol version bump and vice versa). The currently
implemented protocol version is stored in [NowProtoVersion::CURRENT
] and should be updated
accordingly when the protocol is updated.