Cargo Features

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

[dependencies]
coap-message-implementations = { version = "0.1.7", features = ["alloc", "downcast", "defmt"] }
alloc

Feature flags

Enable the heap module with its heap::HeapMessage implementation.

Affects coap-message-implementations::heap

downcast

Enable Message::downcast_from. This is feature gated because it is the only place in the crate that uses unsafe code, allowing users who do not need it (it is a niche feature) more trust in the crate's correctness.

defmt

Derive defmt::Format where it makes sense, in particular on error types. The underlying defmt is not pub used; when newer versions of defmt come out after 0.3, old derives will be kept in parallel.

Enables defmt