2.7 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
0.4.1 - 2026-01-09
Added
Changed
- Bumped syn crate dependency to 2 (for
jni-sys-macros) (#36)
0.4.0 - 2023-09-25
Added
- Added
JNI_VERSION_9,JNI_VERSION_10,JNI_VERSION_19,JNI_VERSION_20andJNI_VERSION_21constants - Added
GetModule()toJNINativeInterface(#22) IsVirtualThread()toJNINativeInterface(#32)- Implemented
Debugtrait for all types (#31) - Added support for
no_stdenvironments (#12)
Changed
-
jbooleanis now an alias forboolinstead ofu8(#23) -
The
JNIInvokeInterface_andJNINativeInterface_structs were turned into unions that namespace functions by version (#28):This makes it much clearer what version of JNI you require to access any function safely.
So instead of a struct like:
struct JNINativeInterface_ { pub reserved0: *mut c_void, .. pub GetVersion: unsafe extern "system" fn(env: *mut JNIEnv) -> jint, .. pub NewLocalRef: unsafe extern "system" fn(env: *mut JNIEnv, ref_: jobject) -> jobject, }there is now a union like:
union JNINativeInterface_ { v1_1: JNINativeInterface__1_1, v1_2: JNINativeInterface__1_2, reserved: JNINativeInterface__reserved, }And you can access
GetVersionlike:env.v1_1.GetVersionand accessNewLocalReflike:env.v1_2.NewLocalRef.Each version struct includes all functions for that version and lower, so it's also possible to access
GetVersionlikeenv.v1_2.GetVersion. -
Function pointers are no longer wrapped in an
Option<>(#25)
0.3.0 - 2017-07-20
Changed
- Changed jvalue into a union