Cargo Features

[dependencies]
coap-message-demos = { version = "0.4.0", default-features = false, features = ["std", "alloc", "with-log", "example-coaplite", "example-std_embedded_nal_minicoapserver", "example-std_embedded_nal_minicoaptcpserver", "example-std_embedded_nal_coap", "example-coap_crate"] }
default = std

The std feature is set by default whenever coap-message-demos is added without default-features = false somewhere in the dependency tree.

std default = alloc

Enables std of serde and serde-std of coap-handler-implementations

coap-handler-implementations:

This crate has nothing in terms of std to activate, but due to serde's non-additive std feature that extends down to serde_cbor, a user may need to declare that serde's std feature is used just so that all serde implementers are instructed to properly switch on their std as well.

Affects cbor::double_cbor_with_access, cbor::TryingThroughMutex

alloc example-coap_crate? example-coaplite? example-std_embedded_nal_coap? example-std…nal_minicoapserver? example-std…nal_minicoaptcpserver? std

Enables alloc of serde

serde:

Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.

with-log example-coap_crate? example-coaplite? example-std_embedded_nal_coap? example-std…nal_minicoapserver? example-std…nal_minicoaptcpserver? = coap-scroll-ring-server, log, scroll-ring, static_cell

Affects coap-message-demos::log

example-coaplite = alloc, coap-lite, with-log
example-std_embedded_nal_minicoapserver = alloc, embedded-nal, embedded-nal-minimal-coapserver, std-embedded-nal, with-log
example-std_embedded_nal_minicoaptcpserver = alloc, embedded-nal, embedded-nal-minimal-coaptcpserver, embedded-nal-tcpextensions, with-log

Enables embedded-nal-tcpextensions of std-embedded-nal ^0.1.2

example-std_embedded_nal_coap = alloc, async-std, coap-request-implementations, embassy-futures, embedded-nal-async, embedded-nal-coap, rand, std-embedded-nal-async, with-log
example-coap_crate = alloc, coap, coap-lite, tokio, with-log

not directly using coap-lite, but enabling its with-coap-message through this

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

log with-log?
scroll-ring with-log?
coap-scroll-ring-server with-log?
static_cell with-log?

Enables static_cell ^1

coap-request-implementations example-std_embedded_nal_coap?

Enables coap-request-implementations

only used for the examples:

coap-lite example-coap_crate? example-coaplite?

Enables coap-lite ^0.11.5

embedded-nal-minimal-coapserver example-std…nal_minicoapserver?
embedded-nal-minimal-coaptcpserver example-std…nal_minicoaptcpserver?
embedded-nal-tcpextensions example-std…nal_minicoaptcpserver?
embedded-nal-coap example-std_embedded_nal_coap?
embedded-nal example-std…nal_minicoapserver? example-std…nal_minicoaptcpserver?

Enables embedded-nal ^0.6

embedded-nal-async example-std_embedded_nal_coap?
std-embedded-nal example-std…nal_minicoapserver? example-std…nal_minicoaptcpserver?

Enables std-embedded-nal ^0.1.2

std-embedded-nal-async example-std_embedded_nal_coap?
async-std example-std_embedded_nal_coap?
embassy-futures example-std_embedded_nal_coap?
coap example-coap_crate?

Enables coap ^0.14

tokio example-coap_crate?
rand example-std_embedded_nal_coap?