jni-bindgen
jni-bindgen copied to clipboard
Generate Rust JVM FFI wrappers around APIs defined by .jar or .class files, because maintaining your own hand-written bindings is an exercise in boredom, soundness bugs, and pain.
Hello, I'm trying to cast to a Java Object to system service in this case ConnectivityManager. ```java ConnectivityManager mCm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); ``` What I end up with is: Java:...
Updates the requirements on [zip](https://github.com/zip-rs/zip) to permit the latest version. Commits See full diff in compare view Dependabot will resolve any conflicts with this PR as long as you don't...
I'm not sure what the problem is or how to proceed with debugging. Do you have any ideas? ```rust #![cfg(target_os = "android")] use jni_android_sys::android::content::Context; ndk_glue::ndk_glue!(main); fn main() { let vm...
I realized this [commit](https://github.com/MaulingMonkey/jni-bindgen/commit/6b4d4534f8006923487bf15f72872c0d52f3405a) isn't yet on crates.io. I think this is the last thing I need to stop using my own fork.
- [ ] TryFrom? for super - [ ] TryFrom? for interfaces
It would be nice to be able to create a local from a Ref that was made via a leak so you can use the existing Drop trait to clean...
Being unable to compare `result == Ok(42)` is super lame and I hate it. Note that [java.lang.Comparable](https://developer.android.com/reference/java/lang/Comparable.html) is a thing... implemented by types like [java.lang.String](https://developer.android.com/reference/java/lang/String)....
There's a few different ways to handle env. * Implicitly get it from thread local state * **Pros:** Cleanest for end users * **Cons:** TLS performance? Footgun when using in...
Currently, a maliciously crafted `.jar` can probably inject naughty code into the generated bindings. A proper parameterized API for writing code would do a lot to tighten up this security...