build(deps): update jni requirement from 0.21.1 to 0.22.4 in /rslib-bridge by dependabot[bot] · Pull Request #663 · ankidroid/Anki-Android-Backend
Updates the requirements on jni to permit the latest version.
Release notes
Sourced from jni's releases.
Release JNI 0.22.4
Added
JCharSequencebindings forjava.lang.CharSequence(includingAsRef<JCharSequence>+.as_char_sequence()forJString) (#793)bind_java_typesupportsnon_nullqualifier/property for methods and fields to map null references toError::NullPtr(#795)bind_java_typesupports#[cfg()]attributes on methods and fields, to conditionally compile them based on features or other cfg conditions (#797)JValueOwned::check_null()+::is_null()methods for ergonomic null checks on owned (returned) values (#798)- More readable type accessors for
JValueOwned, like.into_bool()instead of.z(),.into_object()instead of.l(), etc (#798)Fixed
jni_manglenow includesdocs/macros/jni_mangle.mdin the crate documentation, so the macro's documentation is visible on docs.rs and in IDEs (#799)Full Changelog: jni-rs/jni-rs@v0.22.3...v0.22.4
Changelog
Sourced from jni's changelog.
[0.22.4] — 2026-03-16
Added
JCharSequencebindings forjava.lang.CharSequence(includingAsRef<JCharSequence>+.as_char_sequence()forJString) (#793)bind_java_typesupportsnon_nullqualifier/property for methods and fields to map null references toError::NullPtr(#795)bind_java_typesupports#[cfg()]attributes on methods and fields, to conditionally compile them based on features or other cfg conditions (#797)JValueOwned::check_null()+::is_null()methods for ergonomic null checks on owned (returned) values (#798)- More readable type accessors for
JValueOwned, like.into_bool()instead of.z(),.into_object()instead of.l(), etc (#798)Fixed
jni_manglenow includesdocs/macros/jni_mangle.mdin the crate documentation, so the macro's documentation is visible on docs.rs and in IDEs (#799)[0.22.3] — 2026-03-05
Fixed
- docs.rs build: Bumps
simd_cesu8dep to >= 1.1.1 which no longer has an automatically-enabled "nightly" feature that may affect the docs.rs build (1.1.x is now also MSRV compatible) (#790)[0.22.2] — 2026-03-01
Note: although no breaking API change was made in this release there were some important fixes made, including a few non-trivial changes to how exceptions are handled and some important safety / soundness fixes made in the re-exported
jni-macros.For these reasons I'm going to again yank the previous 0.22.1 release after this is published, again taking into account that 0.22.1 was itself only released very recently and it should still be relatively unlikely that anyone has strictly locked in a 0.22.1 dependency.
Another benefit to yanking 0.22.1 is that it allows me to pin the
jni-macrosdependency via=0.22.2in this release so that in future releases I don't need to be worried that a newjni-macrosrelease needs to be backwards compatible with all priorjnireleases (so macros can take advantage of newjnifeatures).Hopefully things will be smoother moving forward, now that more people have been starting to update to 0.22.x and there are more people testing it.
Added
Adds bindings for the following
java.langerrors / exceptions (#767):
JArrayIndexOutOfBoundsException(java.lang.ArrayIndexOutOfBoundsException)JArrayStoreException(java.lang.ArrayStoreException)JClassCircularityError(java.lang.ClassCircularityError)JClassFormatError(java.lang.ClassFormatError)JExceptionInInitializerError(java.lang.ExceptionInInitializerError)JClassNotFoundException(java.lang.ClassNotFoundException)JIllegalArgumentException(java.lang.IllegalArgumentException)JIllegalMonitorStateException(java.lang.IllegalMonitorStateException)
... (truncated)
Commits
5ae9458Release jni 0.22.42f954cdFix copy&paste error s/JString::collection/JString::as_char_sequence/33045a1Release jni-macros 0.22.4527703eNo longer recommend passing&mut Envas the last argumentce7130bImport docs/macros/jni_mangle.md docs for jni_mangle macrod80bf23Add more-ergonomic JValueOwned accessors5ffd96abind_java_type: Support #[cfg()] guarded methods/fieldsb498e9fbind_java_type: support non_null methods/fields1f74e4bAddobjects::JCharSequencebinding25f810dRelease jni 0.22.3- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)