Skip to content

"Conflicting implementations of trait..." compiling cargo-credential #17099

@ryanavella

Description

@ryanavella

Problem

I hope this is the correct issue tracker for issues related to the cargo-credential crate. I was redirected here from https://crates.io/crates/cargo-credential

I receive this compilation error when trying to compile a project with dependency cargo-credential@0.4.10 with the latest stable rustc:

error[E0119]: conflicting implementations of trait `From<format_description::parse::format_item::HourBase>` for type `<format_description::parse::format_item::HourBase as format_description::parse::format_item::ModifierValue>::Type`
  --> /home/ryan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cargo-credential-0.4.10/src/secret.rs:89:1
   |
89 | impl<T> From<T> for Secret<T> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: conflicting implementation in crate `time`:
           - impl From<format_description::parse::format_item::HourBase> for <format_description::parse::format_item::HourBase as format_description::parse::format_item::ModifierValue>::Type;

For more information about this error, try `rustc --explain E0119`.
error: could not compile `cargo-credential` (lib) due to 1 previous error

As a sanity check I tried rustup update (to ensure I wasn't on an old rustc) and I also wiped my cargo registry, without luck.

Steps

cargo init
cargo add cargo-credential@0.4.10
cargo check

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.96.0 (30a34c682 2026-05-25)
release: 1.96.0
commit-hash: 30a34c6821b57de0aaec83a901aca39f88f6778c
commit-date: 2026-05-25
host: x86_64-unknown-linux-gnu
libgit2: 1.9.2 (sys:0.20.4 vendored)
libcurl: 8.19.0-DEV (sys:0.4.87+curl-8.19.0 vendored ssl:OpenSSL/3.5.4)
ssl: OpenSSL 3.5.4 30 Sep 2025
os: Ubuntu 24.4.0 (noble) [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugS-blocked-externalStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions