Build project failed
zydxhs opened this issue · comments
zydxhs commented
A simple project with crate clap, but do nothing.
PS E:\code\rust\hello> cargo build
Updating `https://crates-io.cn/crates.io-index` index
warning: spurious network error (2 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - ���ڵ������������ѻ���������������������)
warning: spurious network error (2 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - ���ڵ������������ѻ���������������������)
warning: spurious network error (2 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - ���ڵ������������ѻ���������������������)
warning: spurious network error (2 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - ���ڵ������������ѻ���������������������)
warning: spurious network error (1 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - ���ڵ������������ѻ���������������������)
warning: spurious network error (1 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - ���ڵ������������ѻ���������������������)
warning: spurious network error (1 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - ���ڵ������������ѻ���������������������)
warning: spurious network error (1 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - ���ڵ������������ѻ���������������������)
error: failed to download from `https://static.crates-io.cn/atty/0.2.14`
Caused by:
[35] SSL connect error (schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - ���ڵ������������ѻ���������������������)
Akase Haruka commented
参考 rust-lang/cargo#7096
这是一个 windows 上的常见错误,可以设置 CARGO_HTTP_CHECK_REVOKE=false
zydxhs commented
多谢!
我用过 ustc/tuna/rustcc 的镜像,没有遇到该问题,是否可以你 ustc 那样解决呢?
zydxhs commented
Windows 上解决方法,以下两种都可以:
- 设置环境变量 CARGO_HTTP_CHECK_REVOKE=false
- config 配置文件开头添加一行:http.check-revoke = false