Rigellute / spotify-tui

Spotify for the terminal written in Rust 🚀
MIT License
17.51k stars 521 forks source link

reached the type-length limit while instantiating `tokio::runtime::Handle::enter::<...sult::Result<(), anyhow::Error>>` #796

Open c8hunderscore opened 3 years ago

c8hunderscore commented 3 years ago

when i compiled spotify-tui i got this error:

error: reached the type-length limit while instantiating `tokio::runtime::Handle::enter::<...sult::Result<(), anyhow::Error>>`
  --> C:\Users\minegamer2000\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-0.2.25\src\runtime\handle.rs:72:5
   |
72 | /     pub fn enter<F, R>(&self, f: F) -> R
73 | |     where
74 | |         F: FnOnce() -> R,
75 | |     {
76 | |         context::enter(self.clone(), f)
77 | |     }
   | |_____^
   |
   = note: consider adding a `#![type_length_limit="1430416"]` attribute to your crate

error: aborting due to previous error

error: failed to compile `spotify-tui v0.23.0`

help

rodneydup commented 2 years ago

Getting the exact same error with v0.25.0

On Debian 11, Cargo v1.46.0, installing with "cargo install spotify-tui"

muhark commented 2 years ago

Also getting this error, both on Arch Linux armv7 and Fedora 33.