I encountered a similar issue:
```
# Cargo.toml
webpki = { git = "https://github.com/mesalock-linux/webpki";, tag = "sgx_1.1.0" }
webpki-roots = { git = "https://github.com/mesalock-linux/webpki-roots";, tag = 
"sgx_1.1.0" }
```
Causes errors:
```
error[E0308]: mismatched types
   --> src/ra.rs:187:68
    |
187 |     let mut client = rustls::ClientSession::new(&Arc::new(config), 
dns_name);
    |                                                                    
^^^^^^^^ expected struct `webpki::name::DNSNameRef`, found a different struct 
`webpki::name::DNSNameRef`
    |
note: Perhaps two different versions of crate `webpki` are being used?
   --> src/ra.rs:187:68
    |
187 |     let mut client = rustls::ClientSession::new(&Arc::new(config), 
dns_name);
    |                                                                    
^^^^^^^^

```
`cargo tree` confirms that two different `webpki` version are used:
```
$ cargo tree -p webpki
error: There are multiple `webpki` packages in your project, and the 
specification `webpki` is ambiguous.
Please re-run this command with `-p <spec>` where `<spec>` is one of the 
following:
  https://github.com/mesalock-linux/webpki#0.21.2
  https://github.com/mesalock-linux/webpki#0.21.2
```
In 
[mesalock-linux/webpki-roots:sgx_1.1.0](https://github.com/mesalock-linux/webpki-roots/blob/sgx_1.1.0/Cargo.toml)
 we can see:
```
webpki = { git = "https://github.com/mesalock-linux/webpki";, branch = 
"mesalock_sgx" }
```
I suggest replacing `branch` with the `tag`:
```
webpki = { git = "https://github.com/mesalock-linux/webpki";, tag = "sgx_1.1.0" }
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/206#issuecomment-587514314

Reply via email to