Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Compilation error with rust 1.40 #81

Closed
ln42 opened this issue Sep 22, 2020 · 2 comments
Closed

Compilation error with rust 1.40 #81

ln42 opened this issue Sep 22, 2020 · 2 comments
Assignees
Labels
🐞 Bug Something isn't working

Comments

@ln42
Copy link
Contributor

ln42 commented Sep 22, 2020

Hey there, thanks for the awesome work on lv2 support with Rust!

I just got back on a project I left a couple weeks and it's not compiling anymore:

error[E0432]: unresolved import `proc_macro`
 --> /.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/urid-derive-0.1.0/src/lib.rs:7:5
  |
7 | use proc_macro::TokenStream;
  |     ^^^^^^^^^^ help: a similar path exists: `syn::proc_macro`

error[E0432]: unresolved import `proc_macro`
 --> /.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/urid-derive-0.1.0/src/uri_bound.rs:2:5
  |
2 | use proc_macro::TokenStream;
  |     ^^^^^^^^^^ help: a similar path exists: `syn::proc_macro`

error[E0432]: unresolved import `proc_macro`
 --> /.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/urid-derive-0.1.0/src/urid_collection_derive.rs:1:5
  |
1 | use proc_macro::TokenStream;
  |     ^^^^^^^^^^ help: a similar path exists: `syn::proc_macro`

error: aborting due to 3 previous errors

I'll try to fix it myself by cloning the repo locally, but I thought it was worth reporting as I tried with latest develop and had the same error.

Cheers

@ln42
Copy link
Contributor Author

ln42 commented Sep 22, 2020

Fixed with #83

@JOOpdenhoevel JOOpdenhoevel self-assigned this Oct 7, 2020
@JOOpdenhoevel JOOpdenhoevel added the 🐞 Bug Something isn't working label Oct 7, 2020
@JOOpdenhoevel
Copy link
Contributor

I can reproduce this error. This problem was fixed back in March with 1.42.0, but I will merge the fix nonetheless. However, I would kindly ask you to update your toolchain! 😅 We haven't made it official, but in practice we are only targeting the currently stable versions of Rust, which is 1.46.0 as of this writing.

JOOpdenhoevel added a commit that referenced this issue Oct 7, 2020
Fix #81: Add missing `proc_macro` declaration.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🐞 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants