From 42f78f0db4ba21d2f38279b1a74b07b455f8e45c Mon Sep 17 00:00:00 2001 From: Hugo Hakim Damer Date: Thu, 28 Nov 2024 16:13:56 +0100 Subject: [PATCH] fix(meta): Set MSRV to 1.81 to avoid soundness issues with uncaught panics in callbacks --- libcoap/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libcoap/Cargo.toml b/libcoap/Cargo.toml index 6087048c..41e4c562 100644 --- a/libcoap/Cargo.toml +++ b/libcoap/Cargo.toml @@ -16,6 +16,11 @@ authors = ["Hugo Hakim Damer "] categories = ["api-bindings", "network-programming", "embedded"] keywords = ["coap", "libcoap"] resolver = "2" +# libcoap-rs currently does not have mechanisms for passing unwinds through the FFI layer +# in libcoap-initiated callbacks. Therefore, we need the behavior described in +# https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html#abort-on-uncaught-panics-in-extern-c-functions +# to avoid soundness issues. +rust-version = "1.81.0" [features] default = ["dtls-psk", "tcp", "dtls_openssl", "vendored", "libcoap-sys/default"]