[package] name = "coap-message-demos" version = "0.4.0" authors = ["chrysn "] edition = "2021" description = "Demos of the coap-message ecosystem" documentation = "https://docs.rs/coap-message-demos/" repository = "https://gitlab.com/chrysn/coap-message-demos" keywords = ["coap", "iot"] categories = ["no-std"] license = "MIT OR Apache-2.0" rust-version = "1.65" [dependencies] coap-message = "^0.3.0" coap-handler = "^0.2.0" coap-handler-implementations = "^0.5.0" coap-message-utils = "0.3.0" coap-request = "0.2.0-alpha.1" coap-numbers = "0.2.2" heapless = { version = "0.7", features = [ "serde" ] } serde = { version = "1", default-features = false, features = [ "derive" ] } log = { version = "^0.4", optional = true } scroll-ring = { version = "0.1.1", optional = true } coap-scroll-ring-server = { version = "0.2.0", optional = true } static_cell = { version = "1", optional = true } # only used for the examples: coap-request-implementations = { version = "0.1.0-alpha.3", optional = true } coap-lite = { version = "0.11.5", optional = true } embedded-nal-minimal-coapserver = { version = "^0.4", optional = true } embedded-nal-minimal-coaptcpserver = { version = "^0.2", optional = true } embedded-nal-tcpextensions = { version = "^0.1", optional = true } embedded-nal-coap = { version = "0.1.0-alpha.2", optional = true } embedded-nal = { version = "^0.6", optional = true } embedded-nal-async = { version = "^0.7", optional = true } std-embedded-nal = { version = "^0.1.2", optional = true } std-embedded-nal-async = { version = "^0.2", optional = true } async-std = { version = "^1.12", optional = true, features = [ "attributes" ] } embassy-futures = { version = "0.1", optional = true } coap = { version = "^0.14", optional = true } tokio = { version = "^1", optional = true } rand = { version = "0.8", optional = true } [package.metadata.docs.rs] all-features = true [features] std = [ "alloc", "serde/std", "coap-handler-implementations/serde-std" ] alloc = [ "serde/alloc" ] with-log = [ "log", "static_cell", "scroll-ring", "coap-scroll-ring-server" ] default = [ "std" ] example-coaplite = [ "coap-lite", "with-log", "alloc" ] example-std_embedded_nal_minicoapserver = [ "embedded-nal-minimal-coapserver", "embedded-nal", "std-embedded-nal", "with-log", "alloc" ] example-std_embedded_nal_minicoaptcpserver = [ "embedded-nal-minimal-coaptcpserver", "embedded-nal", "std-embedded-nal/embedded-nal-tcpextensions", "with-log", "alloc", "embedded-nal-tcpextensions" ] example-std_embedded_nal_coap = [ "embedded-nal-coap", "embedded-nal-async", "std-embedded-nal-async", "with-log", "alloc", "async-std", "embassy-futures", "rand", "coap-request-implementations" ] # not directly using coap-lite, but enabling its with-coap-message through this example-coap_crate = [ "coap", "tokio", "with-log", "alloc", "coap-lite" ] [badges] gitlab = { repository = "chrysn/coap-message-demos" } maintenance = { status = "experimental" } [[example]] name = "coaplite" required-features = [ "example-coaplite" ] [[example]] name = "std_embedded_nal_minicoapserver" required-features = [ "example-std_embedded_nal_minicoapserver"] [[example]] name = "std_embedded_nal_minicoaptcpserver" required-features = [ "example-std_embedded_nal_minicoaptcpserver"] [[example]] name = "std_embedded_nal_coap" required-features = [ "example-std_embedded_nal_coap"] [[example]] name = "coap_crate" required-features = [ "example-coap_crate" ]