➜  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)


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

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

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

 

2. input command "cargo build --verbose"

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

 

3. input command "cargo build"

build success!

相关文章: