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

Rust nigthly & dependency fixes #15

Merged
merged 9 commits into from
Nov 29, 2022
Merged

Rust nigthly & dependency fixes #15

merged 9 commits into from
Nov 29, 2022

Conversation

BigBigos
Copy link
Contributor

@BigBigos BigBigos commented Nov 23, 2022

This is the result of me trying to build apex-tux just now.

This PR fixes warnings about feature(generic_associated_types) (which is no longer nightly exclusive), upgrades two dependencies and fixes the uses, and in general cleans up a few things.

I have validated both apex-tux and apex-ctl work on Linux on Apex 7. After adding mpris2 integration to mpd (using https://github.com/eonpatapon/mpDris2) and setting mpris2.preferred_player to mpd in settings.toml I also managed to test the media player integration.

This file tells cargo (and other tools, like vscode rust-analyzer
plugin) to use the nightly toolchain by default.

This is needed to correctly open the project in vscode with
rust-analyzer.

We should probably fix a nigthly version, but for now leave it as a
generic `nightly`.
The feature(generic_associated_types) has been recently stabilized and
does not need to be listed in the `#![feature(...)]` block.

Also, move the `where` clauses on GAT impls to after the type
assignment, taking advantage of a syntax change described here:

  rust-lang/rust#89122
bitvec-0.22.3 depends on yanked funty-1.2.0 and no longer builds. Update
to bitvec-1.0.1 as this is the most recent version.

Change a few API calls as they have been renamed. Move the framebuffer
BitArray size to a constant so that it is not repeated.
Update clap to 4.0.26. Enable the `derive` feature to fix compilation.

Change the derive attributes to work with newer version of clap.

Drop apex_hardware::FareBuffer use.
Make `src/render/debug.rs` buildable.
It was called `crypto`, but the provider is called `coindesk` instead.
@not-jan
Copy link
Owner

not-jan commented Nov 29, 2022

Hi!
Sorry for the late reply, I must've missed the e-mail somehwo. This looks excellent. Thank you very much!

@not-jan not-jan merged commit 5750f97 into not-jan:master Nov 29, 2022
@not-jan not-jan mentioned this pull request Nov 29, 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.

2 participants