You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows最新GitHub Runner上Tauri项目rb-sys编译失败求助

问题:GitHub Actions Windows最新运行器构建Tauri项目时rb-sys v0.9.100编译失败

编译过程中触发错误:

C:/hostedtoolcache/windows/Ruby/3.2.2/x64/include/ruby-3.2.0\ruby\defines.h:43:11: fatal error: 'strings.h' file not found

最初怀疑是Ruby版本不匹配,通过setup-ruby action调整为对应版本后问题仍未解决。

以下是项目各模块的Cargo.toml配置,恳请提供解决线索:

主Cargo.toml

[build-dependencies]
tauri-build = { version = "1.5", features = [] }

[dependencies]
anyhow = "1"
chrono = "0.4.31"
futures = "0.3"
home = "0.5.4"
hound = "3"
log = "^0.4"
once_cell = "1.18.0"
reqwest = { version = "0.12", features = ["json"] }
ringbuf = "0.3"
rodio = "0.19"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
serde_repr = "0.1"
tauri = { version = "1.7.1", features = [] }
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1", features = ["colored"] }
tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
url-builder = "0.1.1"
uri-template-system = "=0.1.0"

# Local crates
crate_error_codes = { path = "./../../../lib/crate_error_codes" }
crate_models = { path = "./../../../lib/crate_models" }

[features]
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]

crate_error_codes的Cargo.toml

[package]
name = "crate_error_codes"
version = "0.1.0"
edition = "2021"

[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_repr = "0.1"
tsync = "1"
magnus = { version = "0.6.2" }
strum = "0.26"
strum_macros = "0.26"

crate_models的Cargo.toml

[package]
name = "crate_models"
version = "0.1.0"
edition = "2021"

[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_repr = "0.1"
tsync = "1"

内容的提问来源于stack exchange,提问作者Seto

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.19 09:33:28