我正在尝试在 Windows 上使用带有 rust 的 bevy 游戏引擎。我已经x86_64-mingw
安装在我的机器上。我已将 rust 工具链默认设置为x86_64-pc-windows-gnu
. 我把bevy = "0.4.0"
我的依赖项放在Cargo.toml
.
我试过cargo build
了,我收到以下错误
error: failed to run custom build command for `syn v1.0.63`
Caused by:
could not execute process `C:\Users\USERNAME\Projects\rust-game\target\debug\build\syn-a158346a8e8b6be7\build-script-build` (never executed)
Caused by:
Access is denied. (os error 5)
warning: build failed, waiting for other jobs to finish...
error: build failed
当我尝试在管理员模式下编译时syn
编译但另一个库给出错误
Compiling proc-macro2 v1.0.24
Compiling syn v1.0.63
Compiling serde_derive v1.0.124
Compiling serde v1.0.124
error: failed to run custom build command for `proc-macro2 v1.0.24`
Caused by:
could not execute process `C:\Users\USERNAME\Projects\rust-game\target\debug\build\proc-macro2-a1d2a8cf734884f9\build-script-build` (never exe
cuted)
Caused by:
Access is denied. (os error 5)
warning: build failed, waiting for other jobs to finish...
error: build failed