Conversation
38af1e3 to
c85fd1c
Compare
|
I've pushed up an initial attempt to adopt the new API of |
|
jni 0.22 is out now. |
Not sure what this means, nor am I really motivated to learn... |
The error message suggests how to fix the problem (add an explicit |
Dropped the |
|
Okay, so the test suite doesn't compile yet, and I don't think I have enough context on how this should work to fix that. Also, the Nix stuff fails, probably because the compiler is too old and the |
|
Upgraded the PR to 0.22.2. Still needs someone with more JVM and/or Nix context to move forward. |
|
I'm working on a project involving using |
Looking at the error messages in CI, it seems like there are some complaints about edition2024 not being supported by the current rust compiler version, which the flake is getting from the Cargo.toml file, which was set to 1.77 in this commit. 1.85 is the earliest version that supports edition 2024, so the version bump might need to go there to make this work. |
Indeed, here's a fix commit that fixes the Nix CI jobs on this branch. Do you want to cherry-pick it in here, or should I open a separate PR? (Meta note: I added that flake+CI integration and would be OK with it being removed if i'm the only thing keeping it from annoying other contributors. Fighting Android+native platform APIs doesn't spark joy and unless there's a sponsorship motivation I'd prefer to prioritize volunteering time in other Rustls repos) |
|
I just tried making #224 to see if that version bump might fix the CI problems, but it seems the CI pipeline won't run for me. |
|
This looks good so far and I'll be finishing up my review of the global/env changes specifically Saturday morning 👍 |
|
I just used this branch in my Android app, along with latest |
a92b18f to
f027fef
Compare
643a8ef to
cc1891c
Compare
|
Alright, looks like this can finally pass CI. There was a problem with the earlier version of |
jplatte
left a comment
There was a problem hiding this comment.
As somebody who just likes their Cargo.lock tidy and has no domain knowledge of JNI, this looks good. Left a few minor comments.
|
Thanks! Would especially appreciate a review from someone with substantial Android/jni expertise. |
Unfortunately the Android API exposes jni publicly.
I can't say I have substantial JNI expertise, but I've been using the API a fair amount in the last few weeks. One suggestion I'd have is to take advantage of the macros like jni_sig!, so this code: Could be more readable: I think that's correct. I didn't try to compile it. I've also found the |

To give feedback upstream.