yew_form icon indicating copy to clipboard operation
yew_form copied to clipboard

yew_form_derive won't compile with latest syn

Open mardab opened this issue 3 years ago • 5 comments

Compilation attempt end up with:

Compiling yew_form_derive v0.1.7
error[E0432]: unresolved import `syn::export`
 --> /home/marcin/.cargo/registry/src/github.com-1ecc6299db9ec823/yew_form_derive-0.1.7/src/lib.rs:6:10
  |
6 | use syn::export::{ToTokens, TokenStream};
  |          ^^^^^^ could not find `export` in `syn`

error[E0599]: no method named `to_tokens` found for reference `&syn::Path` in the current scope
  --> /home/marcin/.cargo/registry/src/github.com-1ecc6299db9ec823/yew_form_derive-0.1.7/src/lib.rs:32:22
   |
32 |                 path.to_tokens(&mut tokens);
   |                      ^^^^^^^^^ method not found in `&syn::Path`
   |
   = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
   |
6  | use crate::quote::ToTokens;
   |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `yew_form_derive`

For more information I recommend refering to this issue.

mardab avatar Jun 09 '21 19:06 mardab

Hi, the master contains an update for this issue. But the crates registry isn't updated.

jareksgit avatar Jun 10 '21 11:06 jareksgit

When will the fix be released on the registries?

bobbbay avatar Jun 26 '21 14:06 bobbbay

Having the exact same issue on rustc 1.62.0. Do we have to temporarily fetch the package from the GitHub repository instead of crates.io until it is updated?

PeterPierinakos avatar Jul 08 '22 19:07 PeterPierinakos

Nevermind, this is from 2021.

PeterPierinakos avatar Jul 08 '22 19:07 PeterPierinakos

Fixed in fork https://github.com/averichev/yew_form_binding

averichev avatar Jan 11 '24 09:01 averichev