cargo build failed: SSL connect error (schannel: failed to receive handshake, SSL/TLS connection fai

➜  rust-demo git:(dag_blockchain) ✗ cargo build

➜  rust-demo git:(dag_blockchain) ✗ cargo build
error: failed to download from `https://crates.io/api/v1/crates/rand/0.6.1/downl                                                                                                                                   oad`

Caused by:
  [35] SSL connect error (schannel: failed to receive handshake, SSL/TLS connect                                                                                                                                   ion failed)


fix this error as follows:

https://github.com/rust-lang/cargo/issues/1689

1. input command "curl " + "download url", example:

curl https://crates.io/api/v1/crates/rand/0.6.1/download -v

2. input command "cargo build --verbose"

3. input command "cargo build"

build success!

猜你喜欢

转载自blog.csdn.net/piedaocaoren/article/details/84951915
今日推荐