Cargo 未编译并出现以下错误:
$ cargo build
Compiling ring v0.12.1
error[E0583]: file not found for module `montgomery`
-->
C:\Users\jmccrae\.cargo\registry\src\github.com1ecc6299db9ec823\ring-0.12.1\src\arithmetic/arithmetic.rs:15:9
|
15 | pub mod montgomery;
| ^^^^^^^^^^
|
= help: name the file either arithmetic\montgomery.rs or arithmetic\montgomery\mod.rs inside the directory
"C:\\Users\\jmccrae\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\ring-0.12.1\\src\\arithmetic"
该项目是一个新项目,修改了 Cargo.toml 以包含对最新版本 (0.12.1) 的依赖项ring
箱。 Cargo.toml 如下:
[package]
name = "testring"
version = "0.1.0"
authors = ["John McCrae <[email protected] /cdn-cgi/l/email-protection>"]
[dependencies]
ring = "0.12.1"
所需的文件似乎确实存在:
$ ls C:\\Users\\jmccrae\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\ring-0.12.1\\src\\arithmetic
arithmetic.rs montgomery.rs
货运版本是cargo 0.25.0-nightly (930f9d949 2017-12-05)
它正在 MINGW 上运行。
编译器设置有问题吗?
This is Ring 和 Rust 1.24.0-nightly 的问题 (2017-12-21) https://github.com/briansmith/ring/issues/598。它还有一个相关的Rust 存储库中的问题 https://github.com/rust-lang/rust/issues/46936.
要解决这个问题,请使用旧版本的 Rust nightly(或者如果可以的话避免 nightly)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)