diff --git a/examples/rust-gcoap/Cargo.lock b/examples/rust-gcoap/Cargo.lock index 246031797c..6675893438 100644 Binary files a/examples/rust-gcoap/Cargo.lock and b/examples/rust-gcoap/Cargo.lock differ diff --git a/examples/rust-gcoap/Cargo.toml b/examples/rust-gcoap/Cargo.toml index 58d66cf76a..8ef7ff4e01 100644 --- a/examples/rust-gcoap/Cargo.toml +++ b/examples/rust-gcoap/Cargo.toml @@ -12,5 +12,5 @@ crate-type = ["staticlib"] riot-wrappers = { version = "^0.7", features = [ "with_coap_message", "with_coap_handler" ] } coap-message-demos = { git = "https://gitlab.com/chrysn/coap-message-demos/", default-features = false } -coap-handler-implementations = "0.1" +coap-handler-implementations = "0.3" riot-coap-handler-demos = { git = "https://gitlab.com/etonomy/riot-module-examples/", features = [ "vfs" ] } diff --git a/examples/rust-gcoap/src/lib.rs b/examples/rust-gcoap/src/lib.rs index 0059b4523c..4fdcdbba21 100644 --- a/examples/rust-gcoap/src/lib.rs +++ b/examples/rust-gcoap/src/lib.rs @@ -33,14 +33,14 @@ fn main() { println!("CoAP server ready; waiting for interfaces to settle before reporting addresses..."); - let sectimer = ztimer::ZTimer::sec(); + let sectimer = ztimer::Clock::sec(); sectimer.sleep_ticks(2); for netif in gnrc::Netif::all() { println!("Active interface from PID {:?} ({:?})", netif.pid(), netif.pid().get_name().unwrap_or("unnamed")); match netif.ipv6_addrs() { Ok(addrs) => { - for a in addrs.addresses() { + for a in &addrs { println!(" Address {:?}", a); } } diff --git a/examples/rust-hello-world/Cargo.lock b/examples/rust-hello-world/Cargo.lock index e5112fbf3d..a39ed93d42 100644 Binary files a/examples/rust-hello-world/Cargo.lock and b/examples/rust-hello-world/Cargo.lock differ diff --git a/tests/rust_minimal/Cargo.lock b/tests/rust_minimal/Cargo.lock index a9ec8630f4..06a7209703 100644 Binary files a/tests/rust_minimal/Cargo.lock and b/tests/rust_minimal/Cargo.lock differ