crates-io-cn / crates-io-cn

Source code of crates-io.cn, also tools sets for sync crates.io

Home Page:https://crates-io.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build project failed

zydxhs opened this issue · comments

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) - ���ڵ������������ѻ������������޷���������)

参考 rust-lang/cargo#7096
这是一个 windows 上的常见错误,可以设置 CARGO_HTTP_CHECK_REVOKE=false

多谢!
我用过 ustc/tuna/rustcc 的镜像,没有遇到该问题,是否可以你 ustc 那样解决呢?

Windows 上解决方法,以下两种都可以:

  1. 设置环境变量 CARGO_HTTP_CHECK_REVOKE=false
  2. config 配置文件开头添加一行:http.check-revoke = false