not-jan / apex-tux

Linux support for the OLED screen of the Apex Pro, Apex 5 and Apex 7 keyboards by SteelSeries
The Unlicense
73 stars 15 forks source link

Issue building apex-music from source #32

Closed diegoauyon closed 1 year ago

diegoauyon commented 1 year ago

When trying to build from source.

Following errors appears:

error[E0658]: `impl Trait` in associated types is unstable
--> apex-music/src/player.rs:74:31
|
74 |     type MetadataFuture<'a> = impl Future<Output = Result<Self::Metadata>> + 'a
|                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
--> apex-music/src/player.rs:77:27
|
77 |     type NameFuture<'a> = impl Future<Output = String>
|                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
--> apex-music/src/player.rs:80:37
|
80 |     type PlaybackStatusFuture<'a> = impl Future<Output = Result<PlaybackStatus>>
|                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
--> apex-music/src/player.rs:83:31
|
83 |     type PositionFuture<'a> = impl Future<Output = Result<i64>>
|                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
--> apex-music/src/player.rs:135:30
|
135 |     type ArtistsFuture<'a> = impl Future<Output = Result<String>> + 'a
|                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
--> apex-music/src/player.rs:138:29
|
138 |     type LengthFuture<'a> = impl Future<Output = Result<u64>> + 'a
|                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
--> apex-music/src/player.rs:141:28
|
141 |     type TitleFuture<'a> = impl Future<Output = Result<String>> + 'a
|                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

Apologies I'm not knowledgeable in Rust so I'm not completely sure what else I can say. It happens from manually building the app or trying to use AUR package

jehendeoff commented 1 year ago

please try to follow this

diegoauyon commented 1 year ago

Yep, that worked correctly, thanks