coap-numbers

Crates.iocoap-numbers
lib.rscoap-numbers
version0.2.4
sourcesrc
created_at2020-08-14 08:47:26.778273
updated_at2024-04-17 20:01:55.088864
descriptionConstants for the CoAP protocol
homepage
repositoryhttps://gitlab.com/chrysn/coap-numbers/
max_upload_size
id276511
size43,711
(chrysn)

documentation

https://docs.rs/coap-numbers/

README

The coap-numbers crate provides constants used in the CoAP protocol and registered in the CoRE Parameters registry at IANA.

Along with the numeric values, it provides converters to string representations, and classification in case the numbers carry inherent.

It does not provide enums or newtypes for them, but can serve as a base to build those. (Especially for constrained platforms, the expectation here is that they'd have an enum of things they can work with, and everything else is just unsupported and doesn't need to waste any more space).

Minimum Supported Rust Version (MSRV)

This crate is build-tested on stable Rust 1.51.0. It might compile with older versions but that may change at any time.

Commit count: 45

cargo fmt