From df2b128415462d39dec552f9f583617114fb9c09 Mon Sep 17 00:00:00 2001 From: David Anderson <215816+akapug@users.noreply.github.com> Date: Tue, 25 Nov 2025 19:21:42 -0800 Subject: [PATCH] fix(deps): pin llama-cpp-2 to =0.1.102 to fix CI build failure Version 0.1.126+ introduced a breaking API change where c_char type changed from *const i8 to *const u8, causing type mismatch errors in buildRustNativesForHost. Fixes #1796 --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ffae6fc515..d1f3519017 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4093,9 +4093,9 @@ checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" [[package]] name = "llama-cpp-2" -version = "0.1.127" +version = "0.1.102" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd787c2dbc148c521ad5b326672e5e4e7186d658f8949b6e045ad53acbffedd9" +checksum = "a419bb48efa0f8389a82301f1f64e2874568a3fbf6f62f8ddab5324382b82768" dependencies = [ "enumflags2", "llama-cpp-sys-2", diff --git a/Cargo.toml b/Cargo.toml index 648d01ed60..7fd3cdb5c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -88,7 +88,7 @@ umbrella = { path = "tools/umbrella" } ## Dependencies lazy_static = { version = "1.5.0" } anyhow = { version = "1.0.97" } -llama-cpp-2 = { version = "0.1.102", default-features = false } +llama-cpp-2 = { version = "=0.1.102", default-features = false } bindgen = { version = "0.72.0" } build_const = { version = "0.2.2", default-features = false } bytemuck = { version = "1.23.1" }