Registry Update `https: // example.com /`

Like https://github.com/DaGenix/rust-crypto , I added this to my rust-lib project:

//Cargo.toml [dependencies] rust-crypto = "*" //lib.rs extern crate "rust-crypto" as rust_crypto; 

And got the following:

 $ 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 is no "example.com" neither my project nor its lib.

+5
source share
1 answer

I'm not sure why you are understated.

You can only have old Cargo when the registry was installed on example.com. When was the last time you installed it?

See also: this reddit thread http://www.reddit.com/r/rust/comments/2mywa1/cargo_update_error_on_registry_httpsexamplecom/

+2
source

Source: https://habr.com/ru/post/1207430/


All Articles