Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update to rust 2021 edition #196

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

DivineGod
Copy link

@DivineGod DivineGod commented Jun 14, 2022

Trying to get this project to compile in 2022.

I had some issues with the Cargo.lock file missing which caused some dependencies to not work out of the box so I updated everything to the latest versions.

This upgrade caused a few issues with generic types, especially Vector2 and Point2 which are now using DVec2 from glam.

The main issue in this that I haven't yet worked through is a change in nannou_audio::stream::Shared that means in is now !Sync as it now contains a cpal::Stream which is !Sync. I've currently resorted to commenting out starting the Soundscape update thread and it's just returning None instead of Some(thread) (the instantiation of which is currently commented out so to make the compiler happy)

  • Compile in 2021 edition (Soundscape disabled)
  • Enable soundscape
  • Verify that it works as intended

@DivineGod DivineGod changed the title Make work 2022 Update to rust 2021 edition Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant