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

\10140; [UNK]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!

 
 
Note: in addition, there are many reasons for this problem, such as unstable network, crates need to cross the wall and so on, which may need to be tried and investigated one by one;

 

Similar Posts: