Fix Windows MSVC linking issues (#7511)

This commit is contained in:
jh-block
2026-02-25 23:59:32 +01:00
committed by GitHub
parent a010327925
commit fc292c73ec
6 changed files with 54 additions and 28 deletions
+3 -3
View File
@@ -107,7 +107,7 @@ candle-core = { version = "0.9", default-features = false }
candle-nn = { version = "0.9", default-features = false }
candle-transformers = { version = "0.9", default-features = false }
byteorder = "1.5.0"
tokenizers = "0.21.0"
tokenizers = { version = "0.21.0", default-features = false, features = ["onig"] }
hf-hub = { version = "0.4.3", default-features = false, features = ["tokio"] }
symphonia = { version = "0.5", features = ["all"] }
rubato = "0.16"
@@ -127,7 +127,7 @@ which = { workspace = true }
pctx_code_mode = "^0.2.3"
unbinder = "0.1.7"
pulldown-cmark = "0.13.0"
llama-cpp-2 = { version = "0.1.133", features = ["sampler"] }
llama-cpp-2 = { git = "https://github.com/jh-block/llama-cpp-rs.git", branch = "goose-patches", features = ["sampler"] }
encoding_rs = "0.8.35"
[target.'cfg(target_os = "windows")'.dependencies]
@@ -137,7 +137,7 @@ winapi = { version = "0.3", features = ["wincred"] }
[target.'cfg(target_os = "macos")'.dependencies]
candle-core = { version = "0.9", default-features = false, features = ["metal"] }
candle-nn = { version = "0.9", default-features = false, features = ["metal"] }
llama-cpp-2 = { version = "0.1.133", features = ["sampler", "metal"] }
llama-cpp-2 = { git = "https://github.com/jh-block/llama-cpp-rs.git", branch = "goose-patches", features = ["sampler", "metal"] }
[dev-dependencies]
serial_test = { workspace = true }