-
Notifications
You must be signed in to change notification settings - Fork 21
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 jni to 0.21 #151
Update jni to 0.21 #151
Conversation
811d5b0
to
eb21840
Compare
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.
Thanks for picking this up! Could you squash all the JNI-related commits into one so it's cleanly separate from the Let's Encrypt certificate update?
Yep. Will get that done this morning. |
@Cyannide Thanks for picking this up. @complexspaces Do you think jni-rs/jni-rs#513 is a blocker for this? |
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.
Thanks again.
I think there's a couple clippy
/rustfmt
nits to sort out, but overall this seems 👍 It also looks like the diff in this branch ended up a little bit less involved than in #63, nice to see that.
Beyond getting CI passing I think we should wait for Complexspaces to weigh in w.r.t the upstream window-sys dep before merging.
Breaking changes for Android.
It used to be a blocker (IMO) until it became clear that If someone is writing a Java extension that compiles on Windows, and maybe uses this crate: sorry 😅? FWIW what do people think about dropping the Cargo bump commit currently here? It makes it slightly more annoying to do releases because there's no easy diff to open a branch on without that. We don't guarantee the I'm happy to give this a proper review/lookover tomorrow or Wednesday. |
I'd love to see a maintained version of |
Not sure I entirely understand the annoyance here? In other rustls projects we like to bump proactively in PRs that make incompatible changes, as a way of recording that incompatible changes have been made. It can be pretty hard to establish after the fact whether incompatible changes have been made once a substantial amount of changes have been made... (That is, this is intended more as a help for the maintainers than it is for git branch consumers.) |
I'll take a look at the Windows side of things tomorrow to see what the issues there are to overcome. I'm also of the opinion that if someone is honestly building something on Windows that requires the JNI dependency, sorry. |
FWIW, If I'm understanding you correctly, I don't think its really about overcoming issues. The
|
gentle bump. If it's going to take you a little bit to find time to review the meat of this branch maybe we could pull out the CI fix separately so I don't get emails about the cron build failing? 🙇 |
Thanks! This looks good to go 👍. I had looked over this last week but I just did it offhand and not in an actual GitHub review. |
Rust JNI 0.21 introduced some breaking changes.
The main reason for needing JNI 0.21 here is that android-activity 0.6.0 is based on it and the JNIEnv references are incompatible.
#63 and #22