csvlens
csvlens copied to clipboard
Installation with cargo fails
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.
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.
I was on 1.86 That solved it, my bad. Thank you!