As https://github.com/DaGenix/rust-crypto says, I added this to my rust-lib project:
//Cargo.toml
[dependencies]
rust-crypto = "*"
//lib.rs
extern crate "rust-crypto" as rust_crypto;
And got this:
$ cargo build --verbose
Updating registry `https://example.com/`
Unable to update the package registry
Caused by:
failed to fetch `https://example.com/`
Caused by:
[16] hostname does not match certificate
There's no "example.com" neither my project, nor in his lib.
I'm not sure why you're being downvoted.
You may just have an older Cargo, when the registry was set to example.com. When did you last install it?
See also: this reddit thread http://www.reddit.com/r/rust/comments/2mywa1/cargo_update_error_on_registry_httpsexamplecom/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With