Skip to content

Commit

Permalink
fix(meta): Set MSRV to 1.81 to avoid soundness issues with uncaught p…
Browse files Browse the repository at this point in the history
…anics in callbacks
  • Loading branch information
pulsastrix committed Nov 28, 2024
1 parent d0206b4 commit 42f78f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libcoap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ authors = ["Hugo Hakim Damer <[email protected]>"]
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"]
Expand Down

0 comments on commit 42f78f0

Please sign in to comment.