Cargo Features

coap-message-utils has no features set by default.

[dependencies]
coap-message-utils = { version = "0.3.2", features = ["error_unprocessed_coap_option", "error_request_body_error_position", "error_max_age"] }
error_unprocessed_coap_option

## Feature flags

### Details of the Error struct

Without these, the [Error] struct is just a code u8.

Allow storing the RFC9290 "Unprocessed CoAP option" problem detail in Bad Option errors, and emit it in CBOR payloads. If this feature is not enabled, any such detail provided in errors is silently not emitted.

error_request_body_error_position

Allow storing the RFC9290 "Request Body Error Position" problem detail in Bad Request errors, and emit it in CBOR payloads. If this feature is not enabled, any such detail provided in errors is silently not emitted.

error_max_age

Store a Max-Age of the error. The method [Error::with_max_age()] is only available when this feature is enabled.