Closed UweKrause closed 1 year ago
Hi. Without cargo / rust having already been installed from Debian / Ubuntu repositories... as they usually lag way behind official Rust releases (hence leading to such issues as above):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
cargo install bandwhich
If you want to build from latest git commit...
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
git clone https://github.com/imsnif/bandwhich
cd bandwhich
cargo build --release --locked
If worrying about the rustup official installer (being outside the official repos),
possibly 'polluting' your system, it doesn't - everything gets placed under $HOME:
a .cargo folder, a .rustup folder, & a minor entry appended to .profile (adjusting $PATH properly).
rustup self uninstall
deletes the 2 folders in question & reverts .profile to what it was before.
Or you could simply manually remove / revert such now that you know...
Thanks for taking the time for an answer. You are right, with the newest (stable) rust, installed via script from rustup.rs, installation via cargo just works fine :)
The rustc delivered by debian 10 has version 1.41.1, the readme from bandwhich says
The minimum supported Rust version is 1.39.0.
I guess the readme should hint to the correct minimum version? I would make a PR, but I don't know the minimum version. Everything works with the current 1.46.0, but I don't know if this is the minimum version.
Hey @UweKrause - thanks for bringing this up. The line from the readme is indeed a little old and as we upgrade our dependencies occasionally it becomes outdated.
How about if we change it to something like "If you're having trouble compiling bandwhich, try upgrading cargo
to the latest available version using rustup"? Do you feel that would have been more clear for you?
Just passing by.
I think it is nice to document a MSRV (I wish there was an official way to denote it in Cargo.toml
or something). Would it be possible to run CI on the MSRV, so it becomes obvious when a change requires a newer rust version?
Hi all, I've bumped MSRV to 1.65.0. There is now indeed also a way to "officially denote" the MSRV in Cargo.toml
.
Fixed by 66ba689. See also #275.
Hey, for my debian 10 machine there are no package sources, therefore I tried to get bandwhich with cargo. I got a fresh (fresh as in no configuration or anything, just apt-getted it) cargo (cargo 1.42.1) from the debian package source, maybe its an old version?
Anyway, trying to
cargo install bandwhich
(as root) failed.I have no clue about rust or cargo or anything, so I am lost here. Hopefully this is really not my fault anyhow ;-)