Rust error in Guess Game


#1

I am learning Rust language. I tried doing Guess game and as I give rand in Cargo.toml file I am getting error which I could not find why. Error is “failed to load source for dependency on rand” caused by

  1. unable to update registry.
  2. failed to fetch
  3. unknown certificate check failure; class= Net (12) ; code=certificate(-17).
    someone please help me in moving forward with my learning Rust program

#2

What operating system are you on? If it’s Windows 7, you may be running into https://github.com/rust-lang/cargo/issues/5066


#3

@steveklabnik yes I am using windows 7 and this solution fixed my issue Thank you.