coap_numbers/lib.rs
1//! This crate primarily contains constants for the [CoAP] Protocol, as maintained in the [CoRE
2//! Parameters] registry at IANA.
3//!
4//! In addition to the constants themselves, it provides functions to get their names and
5//! extractable properties.
6//!
7//! This crate tries not to be opinionated in terms of types: It uses the Rust types that reflect
8//! the possible ranges of the registry, but does not attempt to create suitable newtypes or enums
9//! for the constants. That is left to downstream libraries, as they can best judge whether they
10//! need to represent values that are unrecognized anyway.
11//!
12//! [CoAP]: http://coap.technology/
13//! [CoRE Parameters]: https://www.iana.org/assignments/core-parameters/core-parameters.xhtml
14//!
15//! ## Features
16//!
17//! The only optional feature is ``alloc``, which is opt-in. It adds functions that return a
18//! ``String``; those typically have formatter based functions they point to for replacement.
19#![no_std]
20#![cfg_attr(feature = "nightly_docs", feature(doc_auto_cfg))]
21
22#[cfg(feature = "alloc")]
23extern crate alloc;
24
25pub mod code;
26pub mod option;
27pub mod signaling_option;
28
29pub mod oscore_flag;
30
31pub mod content_format;