主要改了 vendor/esaxx-rs/build.rs:只在 crt-static 目标下才启用 static_crt(true),用来修复 Windows 下常见的 MSVC 运行库冲突

This commit is contained in:
273265088@qq.com
2026-03-25 16:05:00 +08:00
parent b8d8732c3d
commit a74b67c93f
60 changed files with 16216 additions and 349 deletions
+6 -1
View File
@@ -43,12 +43,18 @@ half = "2.7.1"
byteorder = "1.5.0"
sentencepiece = "0.13.1"
ahash = "0.8.12"
ort = { version = "2.0.0-rc.10", default-features = false, features = ["load-dynamic", "api-24", "half", "ndarray"], optional = true }
ndarray = "0.17"
[patch.crates-io]
esaxx-rs = { path = "vendor/esaxx-rs" }
[features]
flash-attn = ["candle-flash-attn"]
cuda = ["candle-nn/cuda", "candle-core/cuda", "candle-transformers/cuda"]
metal = ["candle-nn/metal", "candle-core/metal", "candle-transformers/metal"]
ffmpeg = ["ffmpeg-next"]
onnx-runtime = ["dep:ort"]
[lints.clippy]
needless_range_loop = "allow"
@@ -56,4 +62,3 @@ single_range_in_vec_init = "allow"
manual_div_ceil = "allow"
[dev-dependencies]
ort = { version = "2.0.0-rc.10", default-features = false, features = ["load-dynamic", "api-24"] }