#1076209 cargo-deb fails to install on cargo 1.65.0

Package:
cargo
Source:
cargo
Description:
Rust package manager
Submitter:
Ernesto Alfonso
Date:
2025-09-03 15:33:02 UTC
Severity:
normal
#1076209#5
Date:
2024-07-12 15:35:06 UTC
From:
To:
Dear Maintainer,

Attempting to install cargo-deb using the cargo version from debian fails:

    + cargo install cargo-deb
        Updating crates.io index
      Installing cargo-deb v2.4.0
    error: failed to compile `cargo-deb v2.4.0`, intermediate artifacts can be found at `/tmp/cargo-installkCdqlr`

    Caused by:
      failed to select a version for `env_logger`.
          ... required by package `cargo-deb v2.4.0`
      versions that meet the requirements `^0.11` are: 0.11.3, 0.11.2, 0.11.1, 0.11.0

      the package `cargo-deb` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features.
       It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.


      failed to select a version for `env_logger` which could resolve this conflict

    Compilation exited abnormally with code 101 at Fri Jul 12 11:09:07


As a workaround, I had to remove the apt-get installed cargo version and install the latest version.

Ernesto

#1076209#10
Date:
2024-07-12 16:25:06 UTC
From:
To:
For maintainer information:

This is https://github.com/rust-lang/cargo/issues/10788,
fixed in https://github.com/rust-lang/cargo/pull/12130,
released with cargo 1.71.0.

I thought to patch env_logger since it's easy to get rid of a few "dep:"s,
but there are subsequent dependencies mandating newer cargo or rustc.

#1076209#15
Date:
2025-09-03 15:31:48 UTC
From:
To: