You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the compilation starts, but after some time, I get a type error:
Updating git repository `https://github.com/typst/typst.git`Installing typst-cli v0.10.0(https://github.com/typst/typst.git?tag=v0.10.0#70ca0d25)Updating crates.io index
Compiling proc-macro2 v1.0.78Compiling unicode-ident v1.0.12Compiling serde v1.0.197Compiling cfg-if v1.0.0Compiling libc v0.2.153
…etc…
Compiling rustls-pemfile v1.0.4Compiling typst-pdf v0.10.0(/Users/H2CO3/.cargo/git/checkouts/typst-6808799b0d8fdaa9/70ca0d2/crates/typst-pdf)Compiling typst-render v0.10.0(/Users/H2CO3/.cargo/git/checkouts/typst-6808799b0d8fdaa9/70ca0d2/crates/typst-render)Compiling typst-svg v0.10.0(/Users/H2CO3/.cargo/git/checkouts/typst-6808799b0d8fdaa9/70ca0d2/crates/typst-svg)
warning: `typst` (lib) generated 1 warning
error[E0308]: mismatched types
--> crates/typst-cli/src/download.rs:60:38
|
60 | builder = builder.tls_config(config.clone());
| ---------- ^^^^^^^^^^^^^^ expected `ClientConfig`, found a different `ClientConfig`
| |
| arguments to this method are incorrect
|
= note: `ClientConfig` and `ClientConfig` have similar names, but are actually distinct types
note: `ClientConfig` is defined in crate `rustls`
--> /Users/H2CO3/.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`
--> /Users/H2CO3/.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: method defined here
--> /Users/H2CO3/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ureq-2.9.6/src/agent.rs:611:12
|
611 | pub fn tls_config(mut self, tls_config:Arc<rustls::ClientConfig>) -> Self{
| ^^^^^^^^^^
For more information about this error, try `rustc --explain E0308`.error: could not compile `typst-cli` (bin "typst") due to 1 previous error
error: failed to compile `typst-cli v0.10.0(https://github.com/typst/typst.git?tag=v0.10.0#70ca0d25)`, intermediate artifacts can be found at `/var/folders/1j/jy9cg8f15lvb577w7mgfvsn00000gn/T/cargo-installhLVzXS`.To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
This doesn't seem right – how was the 0.10.0 version released if even the latest version of Rust isn't enough to compile it?
Reproduction URL
No response
Operating system
Linux, macOS
Typst version
I am using the latest version of Typst
The text was updated successfully, but these errors were encountered:
Closing this as it doesn't look like a bug on our end and we don't depend on rustls anymore. I don't have time to investigate whether this is a cargo bug, but I'll post it on Discord in case someone wants to take a look.
This isn't an issue with Typst and technically not a bug in Cargo either, it is a case of a bad choice of defaults for cargo install. There is a long standing issue and a recent RFC for fixing it upstream for background.
Description
Rust version: 1.76.0 (07dca489a 2024-02-04)
Arch: x64
OS: same result on both macOS Big Sur 11.1 and on Linux in the official Rust 1.76.0 Docker image
When I try installing Typst using
the compilation starts, but after some time, I get a type error:
This doesn't seem right – how was the 0.10.0 version released if even the latest version of Rust isn't enough to compile it?
Reproduction URL
No response
Operating system
Linux, macOS
Typst version
The text was updated successfully, but these errors were encountered: