Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treewide: Rust updates [backport 2024.01] #20384

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
examples/rust-coap: Update to coap-handler 0.2 based implementations
(cherry picked from commit 6231c58)
  • Loading branch information
chrysn authored and MrKevinWeiss committed Feb 20, 2024
commit 1ca8a30b8ce3657a56f68eda657a3028c0e88986
2 changes: 1 addition & 1 deletion examples/rust-gcoap/Cargo.toml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ opt-level = "s"
riot-wrappers = { version = "^0.8", features = [ "set_panic_handler", "panic_handler_format", "with_coap_message", "with_coap_handler" ] }

coap-message-demos = { git = "https://gitlab.com/chrysn/coap-message-demos/", default-features = false }
coap-handler-implementations = "0.4"
coap-handler-implementations = "0.5"
riot-coap-handler-demos = { git = "https://gitlab.com/etonomy/riot-module-examples/", features = [ "vfs" ] }

# While currently this exmple does not use any RIOT modules implemented in
2 changes: 1 addition & 1 deletion examples/rust-gcoap/src/lib.rs
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ fn main() {
.below(&["vfs"], riot_coap_handler_demos::vfs::vfs("/const"))
.with_wkc()
;
let mut handler = riot_wrappers::coap_handler::GcoapHandler(handler);
let mut handler = riot_wrappers::coap_handler::v0_2::GcoapHandler(handler);

let mut listener = gcoap::SingleHandlerListener::new_catch_all(&mut handler);