jas
jni-android-sys
cargo install jni-android-sys
jas

jni-android-sys

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.

by MaulingMonkey

0.0.10 (see all)License:MIT OR Apache-2.0
cargo install jni-android-sys
Readme

jni-bindgen

GitHub Build Status unsafe: yes rust: 1.36.0+ Open issues License dependency status

Work in progress, only barely kinda partially usable

Vaguely inspired by, but otherwise unrelated to, bindgen and wasm-bindgen's WebIDL stuff.

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.

Goals

  • Provide a means of using Android system APIs specifically.
  • Provide a means of using Java, Kotlin, Scala, or other JVM based APIs.
  • Automatically link API documentation, so people might actually read it.
  • Eliminate the need to manually write unsound, unreviewed, and unaudited unsafe { ... } APIs

Local Crates

github.comcrates.iodocs.rsDescription
jni-android-sysCrates.ioDocsBindings to Android Java APIs
jni-bindgenCrates.ioN/AGenerator of Java API bindings
jni-glueCrates.ioDocsUtility functions for Java API bindings

External Crates / Plugins

github.compackagedocsLicenseWhere
jni-sysCrates.ioDocsLicense
jreflectionCrates.ioDocsLicenseBindgen
rust-android-gradlegradle.orgREADME.mdLicenseExamples

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

GitHub Stars

47

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

4

OPEN ISSUES

24

OPEN PRs

0
VersionTagPublished
0.0.10
2yrs ago
0.0.9
3yrs ago
0.0.8
3yrs ago
0.0.7
3yrs ago
No alternatives found
No tutorials found
Add a tutorial