diff --git a/Cargo.lock b/Cargo.lock index b471bf5..b4529e8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1957,6 +1957,36 @@ dependencies = [ "windows-sys 0.45.0", ] +[[package]] +name = "jni" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if 1.0.4", + "combine", + "jni-macros", + "jni-sys 0.4.1", + "log", + "simd_cesu8", + "thiserror 2.0.19", + "walkdir", + "windows-link", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.117", +] + [[package]] name = "jni-sys" version = "0.3.1" @@ -2129,7 +2159,7 @@ name = "llama-jni" version = "0.5.1" dependencies = [ "anyhow", - "jni", + "jni 0.22.4", "llama-cpp-4", ] @@ -2945,7 +2975,7 @@ checksum = "1d99feebc72bae7ab76ba994bb5e121b8d83d910ca40b36e0921f53becc41784" dependencies = [ "core-foundation 0.10.1", "core-foundation-sys", - "jni", + "jni 0.21.1", "log", "once_cell", "rustls", @@ -3213,6 +3243,22 @@ version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214" +[[package]] +name = "simd_cesu8" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + [[package]] name = "simple" version = "0.5.1" diff --git a/android/llama-jni/Cargo.toml b/android/llama-jni/Cargo.toml index b9b9188..608e384 100644 --- a/android/llama-jni/Cargo.toml +++ b/android/llama-jni/Cargo.toml @@ -22,7 +22,7 @@ anyhow = "1" # JNI glue is only compiled for Android targets; the host/`aarch64-linux-gnu` # builds (including the QEMU smoke test) never pull it in. [target.'cfg(target_os = "android")'.dependencies] -jni = "0.21" +jni = "0.22" [[bin]] name = "smoke"