【发布时间】:2018-10-19 20:20:32
【问题描述】:
我想在 Windows 10 上使用 Rust 制作一个 GUI 应用程序,我发现 the qml crate 看起来不错。
我在我的Cargo.toml 文件中添加了这个依赖项:qml = "0.0.9",但是当我运行cargo build 时,我得到了这个错误:
> cargo build
Compiling qml v0.0.9
error: failed to run custom build command for `qml v0.0.9`
process didn't exit successfully: `project\target\debug\build\qml-018515e4bf91189d\build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'failed to execute process: The specified file cannot be found. (os error 2)', user\.cargo\registry\src\github.com-1ecc6299db9ec823\qml-0.0.9\build.rs:28:33
note: Run with `RUST_BACKTRACE=1` for a backtrace.
我查看了build.rs 文件并看到了这一行:
fs::copy(Path::new(&manifest_dir).join("build_lib.sh"), Path::new(&out_dir).join("build_lib.sh")).unwrap();
也许我没有权限在我的帐户上执行此操作,所以我尝试以管理员身份运行它,但 cargo 和 rustc 安装在我的用户文件夹中。
当我更改路径时,我收到错误error: no default toolchain configured。
【问题讨论】:
标签: rust qml rust-cargo