kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.47k stars 154 forks source link

failed to download `tui v0.17.0` #155

Closed mohamadali-halwani closed 2 years ago

mohamadali-halwani commented 2 years ago

Unable to build joshuto and it gives me this error:

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tui-0.17.0/Cargo.toml`

Caused by:
  failed to parse the `edition` key

Caused by:
  this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.`

I'm on debian 11 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux and I have cargo and rust installed

kamiyaa commented 2 years ago

What version of cargo and rust are you using?

~$ cargo --version
~$ rustc --version
mohamadali-halwani commented 2 years ago

cargo 1.46.0 rustc 1.48.0 I think they are the latest versions on Debian, right?

mohamadali-halwani commented 2 years ago

What should I do to further debug this issue?

kamiyaa commented 2 years ago

Hey, your cargo and rust version is too old. Joshuto requires rust/cargo 1.55+

mohamadali-halwani commented 2 years ago

I'm on debian. I can probably compile both packages by hand, but the packages are up to date on debian stable. Isn't there a chance to get an older version of Joshuto that used to use versions 1.48 of rust and cargo? This way we can put Joshuto on Debian's official repos with no issues.

kamiyaa commented 2 years ago

One solution to get it working on your system is by installing rust and cargo via https://rustup.rs/

mohamadali-halwani commented 2 years ago

Alright, thanks for your help.