jfbilodeau / yew_form

Components to simplify handling forms with Yew
Apache License 2.0
95 stars 16 forks source link

yew_form_derive won't compile with latest syn #8

Open mardab opened 3 years ago

mardab commented 3 years ago

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.

jareksgit commented 3 years ago

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

bobbbay commented 3 years ago

When will the fix be released on the registries?

PeterPierinakos commented 2 years ago

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 commented 2 years ago

Nevermind, this is from 2021.

averichev commented 8 months ago

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