I am trying to compile gtk4 on windows via msys2 when using mingw of the rust compiler, but I get an error.
Compiling proc-macro-error-attr v1.0.4
error[E0277]: the trait bound `roc_macro2::TokenStream: From<proc_macro::TokenStream>`p is not satisfied
--> C:\Users\paul\.cargo\registry\src\github.com-1ecc6299db9ec823\proc-macro-error-attr-1.0.4\src\lib.rs:38:38
|
38 | match impl_proc_macro_error(attr.into(), input.clone().into()) {
| ^^^^ the trait `From<proc_macro::TokenStream>` is not implemented for `proc_macro2::TokenStream`
|
= help: the following implementations were found:
<proc_macro2::TokenStream as From<proc_macro2::TokenTree>>
= note: required because of the requirements on the impl of `Into<proc_macro2::TokenStream>` for `proc_macro::TokenStream`
error[E0277]: the trait bound `proc_macro2::TokenStream: From<proc_macro::TokenStream>` is not satisfied
--> C:\Users\paul\.cargo\registry\src\github.com-1ecc6299db9ec823\proc-macro-error-attr-1.0.4\src\lib.rs:38:60
|
38 | match impl_proc_macro_error(attr.into(), input.clone().into()) {
| ^^^^ the trait `From<proc_macro::TokenStream>` is not implemented for `proc_macro2::TokenStream`
|
= help: the following implementations were found:
<proc_macro2::TokenStream as From<proc_macro2::TokenTree>>
= note: required because of the requirements on the impl of `Into<proc_macro2::TokenStream>` for `proc_macro::TokenStream`
error[E0277]: the trait bound `proc_macro2::TokenStream: From<proc_macro::TokenStream>` is not satisfied
--> C:\Users\paul\.cargo\registry\src\github.com-1ecc6299db9ec823\proc-macro-error-attr-1.0.4\src\lib.rs:42:25
|
42 | let input = TokenStream2::from(input);
| ^^^^^^^^^^^^^^^^^^ the trait `From<proc_macro::TokenStream>` is not implemented for `proc_macro2::TokenStream`
|
= help: the following implementations were found:
<proc_macro2::TokenStream as From<proc_macro2::TokenTree>>
note: required by `from`
...
more error
...
However, if I try to compile this into a release, then everything is going without problems.
Cargo.toml
[package]
name = "gtk4-test"
version = "0.1.0"
edition = "2018"
[dependencies]
gtk = { version = "0.2", package = "gtk4" }
I am trying to compile gtk4 on windows via msys2 when using mingw of the rust compiler, but I get an error.
However, if I try to compile this into a release, then everything is going without problems.
Cargo.toml