3 ms·
I'm fascinated by that description since it's the total opposite of my experience using it. I'd love to see what happened if you have a repo. I'm simply intrigu
by MiguelX413 3y ago
I'm fascinated by that description since it's the total opposite of my experience using it. I'd love to see what happened if you have a repo.
I'm simply intrigued at this point.
- steveklabnik 3y agoThey are using a rustc from August of 2022. If you installed that version, made a new project, and asked for the latest clap, it would not shock me at all if rustc were too old. EDIT: from clap itself: > We will support the last two minor Rust releases (MSRV, currently 1.70.0) So yeah, 1.63.0 is going to be quite old.
- MiguelX413 3y agoI see!
- defanor 3y agoSteps to reproduce, once you have cargo and rustc from Debian stable repositories: cargo init && cargo add clap && cargo run. The following happens: error: package `anstream v0.6.4` cannot be built because it requires rustc 1.70.0 or newer, while the currently active rustc version is 1.63.0 Either upgrade to rustc 1.70.0 or newer, or use cargo update -p anstream@0.6.4 --precise ver where `ver` is the latest version of `anstream` supporting rustc 1.63.0
- estebank 3y agoFor what is worth, you can use https://lib.rs https://lib.rs to see the earliest version a crate supports. For Rust 1.63.0, you will have to rely on Clap 4.0.32 from December 2022, instead of anything newer (which only support 1.64.0+): https://lib.rs/crates/clap/versions https://lib.rs/crates/clap/versions For anstream, the situation seems more difficult for you, as it doesn't seem that there's any (non-yanked?) release that supports <1.64.0: https://lib.rs/crates/anstream/versions https://lib.rs/crates/anstream/versions
- defanor 3y agoThanks! I was looking for a page like that on docs.rs, crates.io, and possibly on lib.rs as well, but missed it; that is likely to be useful in the future. Actually now I see it on crates.io as well, <https://crates.io/crates/anstream/versions https://crates.io/crates/anstream/versions>. Or maybe I saw it before, and just have not found versions <= 1.63.