1 unstable release

0.1.0 Aug 2, 2021

#53 in #jvm

MIT/Apache

8KB
58 lines

jvm-sys

Bindgen-generated bindings for jni.h, jawt.h, and/or jvmti.h, as distributed within a Java distribution.

Features:

link: (default) Enables linking to each enabled library jni: (default) Enables generating bindings for, and linking to (if enabled), the system Java Native Interface library. jawt: Enables generating bindings for, and linking to (if enabled), the system Java Abstract Window Toolkit library. jvmti: Enables generating bindings for, and linking to (if enabled), the system Java Virtual Machine Tools Interface library.

Please note that jawt and jvmti bindings are experimental, and should be considered untested. Confirmation that these work would be welcome in the form of issues/etc.

Usage

You should just be able to pull the crate in as a dependency, and add the following to the consuming crate's lib.rs/main.rs file. (If you don't, a linkage error may occur).

extern crate jvm_sys;

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.

Dependencies

~0–2MB
~38K SLoC