kwap-msg 0.1.5

Low-level CoAP message parsing & serialization
Documentation

crates.io docs.rs Maintenance

kwap-msg

kwap_msg

Low-level representation of CoAP messages.

alloc vs no_alloc

kwap_msg implements CoAP messages as either backed by:

  • alloc: dynamically growable heap-allocated buffers
  • no_alloc: static stack-allocated buffers

alloc::Message can be much easier to use and performs comparably to no_alloc, however it does require: std or a global allocator

kwap_msg::Message vs coap_lite::Packet

Benchmarks are available comparing kwap_msg::alloc::Message, kwap_msg::no_alloc::Message and coap_lite::Packet.

Serializing to bytes

chart

Deserializing from bytes

chart

License

Licensed under either of

at your option.

Contribution

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.