-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update libcoap to 4.3.5, bump dependencies, improve linking (incl. ESP32) #15
Conversation
Code Coverage ReportGenerated for commit d1ab040 on Tue Jul 2 13:31:37 UTC 2024.
|
3a4b561
to
b6d57b4
Compare
This PR should now be ready for a review. Implementing the newly added features (OSCORE, WebSockets, fixing DTLS on the threadsafe version of libcoap...) is probably better done in a separate PR, in order to not make this one too big. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just found a couple of nits below, otherwise: Looks good to me :)
Co-authored-by: Jan Romann <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See three last nits below, otherwise: LGTM! ;)
…DTLS - using mbedtls or tinydtls will no longer force usage of the vendored library version of mbedtls-sys-auto/tinydtls-sys by default - remove dependency on gnutls-sys crate as it is unmaintained, we now handle linking to gnutls ourselves - mbedtls-sys-auto is only used if mbedtls should be vendored, as the crate doesn't allow for disabling vendoring independently and doesn't support mbedtls >= 3.0.0 (see fortanix/rust-mbedtls#320) - in order to use the vendored versions of DTLS crate, you now have to enable the `dtls_backend_[BACKEND]_vendored` feature of libcoap-sys (or the `dtls_[BACKEND]_vendored` feature of libcoap-rs)
Before libcoap 4.3.5, coap_send_rst was inlined, which is why we had to reimplement it, as bindgen didn't generate bindings for it.
Co-authored-by: Jan Romann <[email protected]>
81f588b
to
5b47b8f
Compare
Updates libcoap to 4.3.5-rc2 as well as some dependencies to the latest released version (some of them had cargo audit warnings).
Also improves some of the linking behavior and adds additional features for DTLS library vendoring
NOTE: libcoap 4.3.5 is not released yet, so we should not release a new version of libcoap to crates.io yet. However, libcoap 4.3.5 fixed some mbedtls linking issues, so i'd like to wait for that instead of switching to 4.3.4a.