Crates.io | toad-msg |
lib.rs | toad-msg |
version | 1.0.0-beta.6 |
source | src |
created_at | 2022-10-08 17:40:08.381157 |
updated_at | 2023-07-21 04:17:34.478866 |
description | Low-level CoAP message parsing & serialization |
homepage | https://github.com/clov-coffee/toad/toad-msg |
repository | https://github.com/clov-coffee/toad/toad-msg |
max_upload_size | |
id | 683668 |
size | 200,268 |
Low-level representation of CoAP messages.
The most notable item in toad_msg
is Message
;
a CoAP message very close to the actual byte layout.
CoAP messages are growable and dynamically sized:
This crate uses criterion
to measure performance of the heaped & heapless implementations in this crate as well as coap_lite::Packet
.
In general, toad_msg::VecMessage
performs identically to coap_lite (+/- 5%), and both are much faster than toad_msg::ArrayVecMessage
.
Benchmarks:
Click to expand chart
Click to expand chart
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.