-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
chore(deps): Upgrade to ndk 0.9
and fix thread-safety interactions
#956
Conversation
Package Changes Through f396851There are 1 changes which include tao with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
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.
Could you also add a change file in .changes
directory?
#[cfg(windows)] | ||
use std::{num::NonZeroU32, rc::Rc}; |
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.
Note that there are many more "unused import" warnings like this: why the CI not catching those?
Most changes were copied over from my `wry` PR at tauri-apps/wry#1296. Most notably a `&ThreadLooper` is now passed to `wry::android_setup()` because we have one, and it gives important safety guarantees when it comes to registering callbacks on this looper, without (unnecessarily!) requiring `Send`. A thread-local requirement already exists for the `JNIEnv` that is passed around anyway. Also note that certain workarounds and illogical inverted passes around `key_code()` handling are no longer needed, as the `ndk` crate now passes an `enum` with the raw `i32` around so that the `.into()` conversion for `i32` (the correct type) now becomes lossless.
Thank you |
Closes #807
Closes #808
Closes #955
Most changes were copied over from my
wry
PR at tauri-apps/wry#1296. Most notably a&ThreadLooper
is now passed towry::android_setup()
because we have one, and it gives important safety guarantees when it comes to registering callbacks on this looper, without (unnecessarily!) requiringSend
. A thread-local requirement already exists for theJNIEnv
that is passed around anyway.Also note that certain workarounds and illogical inverted passes around
key_code()
handling are no longer needed, as thendk
crate now passes anenum
with the rawi32
around so that the.into()
conversion fori32
(the correct type) now becomes lossless.In the end I'm also quite surprised how many linter warnings trigger in this crate, which don't seem to be down to just linting on an older Rust toolchain?