csvlens icon indicating copy to clipboard operation
csvlens copied to clipboard

Installation with cargo fails

Open skranz0 opened this issue 1 month ago • 1 comments

When trying to install with cargo install csvlens, compilation fails

The error output ends with

error[E0658]: `let` expressions in this position are unstable
   --> /home/akzzp/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/csvlens-0.14.0/src/view.rs:381:12
    |
381 |         if let Some(cur_filter) = &self.filter
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `csvlens` (lib) due to 28 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `csvlens v0.14.0`, intermediate artifacts can be found at `/tmp/cargo-installcVJHMV`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

skranz0 avatar Nov 03 '25 08:11 skranz0

Could you check your Rust compiler version?

rustc --version

csvlens requires Rust 1.88.0 or newer.

I also recommend installing with cargo install csvlens --locked for more reproducible builds.

YS-L avatar Nov 03 '25 18:11 YS-L

I was on 1.86 That solved it, my bad. Thank you!

skranz0 avatar Nov 05 '25 08:11 skranz0