When runs cargo install rustywind, it fails compile and complains about error[E0308]: mismatched types. Here's the full output:
$ cargo install rustywind
Updating crates.io index
Installing rustywind v0.21.0
Updating crates.io index
Compiling cfg-if v1.0.0
...
Compiling rustls-webpki v0.101.7
Compiling sct v0.7.1
Compiling ureq v2.9.6
Compiling rustywind v0.21.0
error[E0308]: mismatched types
--> /home/{username}/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustywind-0.21.0/src/options/vite.rs:25:43
|
25 | agent = agent.tls_config(Arc::new(ssl));
| -------- ^^^ expected `ClientConfig`, found a different `ClientConfig`
| |
| arguments to this function are incorrect
|
= note: `ClientConfig` and `ClientConfig` have similar names, but are actually distinct types
note: `ClientConfig` is defined in crate `rustls`
--> /home/{username}/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustls-0.21.10/src/client/client_conn.rs:128:1
|
128 | pub struct ClientConfig {
| ^^^^^^^^^^^^^^^^^^^^^^^
note: `ClientConfig` is defined in crate `rustls`
--> /home/{username}/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustls-0.22.2/src/client/client_conn.rs:150:1
|
150 | pub struct ClientConfig {
| ^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `rustls` are being used?
note: associated function defined here
--> /home/{username}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/sync.rs:386:12
|
386 | pub fn new(data: T) -> Arc<T> {
| ^^^
For more information about this error, try `rustc --explain E0308`.
error: could not compile `rustywind` (bin "rustywind") due to 1 previous error
error: failed to compile `rustywind v0.21.0`, intermediate artifacts can be found at `/tmp/cargo-installt3m5u4`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Issue
When runs
cargo install rustywind
, it fails compile and complains abouterror[E0308]: mismatched types
. Here's the full output:Env Info