killercup / cargo-edit

A utility for managing cargo dependencies from the command line.
http://killercup.github.io/cargo-edit/
MIT License
3.08k stars 148 forks source link

Building cargo-edit 0.8.0 on Debian Bullseye fails #531

Closed ppaalanen closed 2 years ago

ppaalanen commented 2 years ago

Using Debian Bullseye's packaged rustc and cargo, trying to install cargo-edit fails.

Am I simply outdated, or is this supposed to work?

$ rustc --version
rustc 1.48.0
$ cargo --version
cargo 1.46.0
$ cargo install cargo-edit
    Updating crates.io index
  Downloaded cargo-edit v0.8.0
  Downloaded 1 crate (61.1 KB) in 0.55s
  Installing cargo-edit v0.8.0
  Downloaded chunked_transfer v1.4.0
  Downloaded cargo-platform v0.1.2
  Downloaded ansi_term v0.11.0
  Downloaded cc v1.0.71
  Downloaded camino v1.0.5
  Downloaded dirs-next v2.0.0
  Downloaded dirs-sys-next v0.1.2
  Downloaded crates-index v0.17.0
  Downloaded dunce v1.0.2
  Downloaded env_proxy v0.4.1
  Downloaded error-chain v0.12.4
  Downloaded once_cell v1.8.0
  Downloaded openssl-probe v0.1.4
  Downloaded openssl-sys v0.9.70
  Downloaded percent-encoding v2.1.0
  Downloaded pathdiff v0.2.1
  Downloaded pkg-config v0.3.22
  Downloaded rustc-demangle v0.1.21
  Downloaded qstring v0.7.2
  Downloaded proc-macro2 v1.0.32
  Downloaded sct v0.6.1
  Downloaded proc-macro-error v1.0.4
  Downloaded socks v0.3.3
  Downloaded proc-macro-error-attr v1.0.4
  Downloaded object v0.27.1
  Downloaded clap v2.33.3
  Downloaded smartstring v0.2.9
  Downloaded semver v1.0.4
  Downloaded serde_json v1.0.69
  Downloaded structopt-derive v0.4.18
  Downloaded structopt v0.3.25
  Downloaded tinyvec v1.5.0
  Downloaded term_size v0.3.2
  Downloaded tinyvec_macros v0.1.0
  Downloaded subprocess v0.2.8
  Downloaded textwrap v0.11.0
  Downloaded unicode-normalization v0.1.19
  Downloaded unicode-segmentation v1.8.0
  Downloaded unicode-width v0.1.9
  Downloaded unicode-bidi v0.3.7
  Downloaded url v2.2.2
  Downloaded untrusted v0.7.1
  Downloaded syn v1.0.81
  Downloaded vec1 v1.8.0
  Downloaded webpki v0.21.4
  Downloaded addr2line v0.17.0
  Downloaded vec_map v0.8.2
  Downloaded bitflags v1.3.2
  Downloaded bytes v1.1.0
  Downloaded backtrace v0.3.63
  Downloaded gimli v0.26.1
  Downloaded base64 v0.13.0
  Downloaded cargo_metadata v0.14.1
  Downloaded heck v0.3.3
  Downloaded static_assertions v1.1.0
  Downloaded ureq v1.5.5
  Downloaded hex v0.4.3
  Downloaded indexmap v1.7.0
  Downloaded spin v0.5.2
  Downloaded home v0.5.3
  Downloaded jobserver v0.1.24
  Downloaded matches v0.1.9
  Downloaded memchr v2.4.1
  Downloaded termcolor v1.1.2
  Downloaded git2 v0.13.23
  Downloaded log v0.4.14
  Downloaded hashbrown v0.11.2
  Downloaded webpki-roots v0.21.1
  Downloaded toml_edit v0.3.1
  Downloaded itertools v0.10.1
  Downloaded rustls v0.19.1
  Downloaded combine v4.6.2
  Downloaded glob v0.3.0
  Downloaded atty v0.2.14
  Downloaded autocfg v1.0.1
  Downloaded aho-corasick v0.7.18
  Downloaded form_urlencoded v1.0.1
  Downloaded adler v1.0.2
  Downloaded strsim v0.8.0
  Downloaded miniz_oxide v0.4.4
  Downloaded byteorder v1.4.3
  Downloaded lazy_static v1.4.0
  Downloaded regex v1.5.4
  Downloaded version_check v0.9.3
  Downloaded either v1.6.1
  Downloaded cfg-if v1.0.0
  Downloaded idna v0.2.3
  Downloaded libssh2-sys v0.2.23
  Downloaded regex-syntax v0.6.25
  Downloaded libc v0.2.106
  Downloaded libgit2-sys v0.12.24+1.3.0
  Downloaded libz-sys v1.1.3
  Downloaded ring v0.16.20
  Downloaded 93 crates (14.3 MB) in 5.42s (largest was `ring` at 5.1 MB)
   Compiling libc v0.2.106
   Compiling proc-macro2 v1.0.32
   Compiling unicode-xid v0.2.2
   Compiling autocfg v1.0.1
   Compiling syn v1.0.81
   Compiling pkg-config v0.3.22
   Compiling serde_derive v1.0.130
   Compiling serde v1.0.130
   Compiling version_check v0.9.3
   Compiling memchr v2.4.1
   Compiling cfg-if v1.0.0
   Compiling tinyvec_macros v0.1.0
   Compiling percent-encoding v2.1.0
   Compiling matches v0.1.9
   Compiling log v0.4.14
   Compiling unicode-bidi v0.3.7
   Compiling ryu v1.0.5
   Compiling spin v0.5.2
   Compiling untrusted v0.7.1
   Compiling once_cell v1.8.0
   Compiling serde_json v1.0.69
   Compiling itoa v0.4.8
   Compiling bitflags v1.3.2
   Compiling semver v1.0.4
   Compiling unicode-segmentation v1.8.0
   Compiling gimli v0.26.1
   Compiling camino v1.0.5
   Compiling unicode-width v0.1.9
   Compiling adler v1.0.2
   Compiling strsim v0.8.0
   Compiling ansi_term v0.11.0
   Compiling openssl-probe v0.1.4
   Compiling hashbrown v0.11.2
   Compiling rustc-demangle v0.1.21
   Compiling bytes v1.1.0
   Compiling byteorder v1.4.3
   Compiling vec_map v0.8.2
   Compiling base64 v0.13.0
   Compiling either v1.6.1
   Compiling static_assertions v1.1.0
   Compiling regex-syntax v0.6.25
   Compiling lazy_static v1.4.0
   Compiling chunked_transfer v1.4.0
   Compiling vec1 v1.8.0
   Compiling glob v0.3.0
   Compiling home v0.5.3
   Compiling dunce v1.0.2
   Compiling termcolor v1.1.2
   Compiling pathdiff v0.2.1
   Compiling tinyvec v1.5.0
   Compiling form_urlencoded v1.0.1
   Compiling qstring v0.7.2
   Compiling miniz_oxide v0.4.4
   Compiling indexmap v1.7.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling error-chain v0.12.4
   Compiling heck v0.3.3
   Compiling itertools v0.10.1
   Compiling unicode-normalization v0.1.19
   Compiling addr2line v0.17.0
   Compiling quote v1.0.10
   Compiling jobserver v0.1.24
   Compiling term_size v0.3.2
   Compiling atty v0.2.14
   Compiling socks v0.3.3
   Compiling dirs-sys-next v0.1.2
   Compiling subprocess v0.2.8
   Compiling object v0.27.1
   Compiling combine v4.6.2
   Compiling aho-corasick v0.7.18
   Compiling cc v1.0.71
   Compiling idna v0.2.3
   Compiling textwrap v0.11.0
   Compiling dirs-next v2.0.0
   Compiling regex v1.5.4
   Compiling url v2.2.2
   Compiling clap v2.33.3
   Compiling env_proxy v0.4.1
   Compiling openssl-sys v0.9.70
   Compiling libz-sys v1.1.3
   Compiling ring v0.16.20
   Compiling libssh2-sys v0.2.23
   Compiling libgit2-sys v0.12.24+1.3.0
   Compiling backtrace v0.3.63
   Compiling webpki v0.21.4
   Compiling sct v0.6.1
   Compiling structopt-derive v0.4.18
   Compiling webpki-roots v0.21.1
   Compiling rustls v0.19.1
   Compiling structopt v0.3.25
   Compiling cargo-platform v0.1.2
   Compiling hex v0.4.3
   Compiling smartstring v0.2.9
   Compiling toml_edit v0.3.1
   Compiling cargo_metadata v0.14.1
   Compiling ureq v1.5.5
   Compiling git2 v0.13.23
   Compiling crates-index v0.17.0
   Compiling cargo-edit v0.8.0
error[E0658]: use of unstable library feature 'str_split_once': newly added
   --> /home/pq/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-edit-0.8.0/src/version.rs:131:62
    |
131 |         if let Some((alpha, numeric)) = version.pre.as_str().split_once(".") {
    |                                                              ^^^^^^^^^^
    |
    = note: see issue #74773 <https://github.com/rust-lang/rust/issues/74773> for more information

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `cargo-edit`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-edit v0.8.0`, intermediate artifacts can be found at `/tmp/cargo-installRW18GG`

Caused by:
  build failed
ordian commented 2 years ago

Oops, looks like we accidentally bumped MSVR to 1.52+ in 0.8.0, sorry. Would be good to have this tested in CI.

epage commented 2 years ago

Closing this as this was an MSRV change.