Skip to content

Doesn't build, rustls-platform-verifier, "the trait bound webpki::Error: std::error::Error is not satisfied" #1244

@nikclayton

Description

@nikclayton

Steps To Reproduce

  1. Checkout head (a3f9e99 at the time of writing).

  2. Install Rust (https://www.rust-lang.org/learn/get-started).

% cargo --version
cargo 1.86.0 (adf9b6ad1 2025-02-28)
  1. Try and build bws
% cd crates/bws
% cargo install --path .

Expected Result

Build completes, no errors.

Actual Result

% cd crates/bws
% cargo install --path .
[... lots of compiler output, then this error ...]
   Compiling rustls-platform-verifier v0.3.4
error[E0277]: the trait bound `webpki::Error: std::error::Error` is not satisfied
   --> /home/nik/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-platform-verifier-0.3.4/src/verification/others.rs:234:40
    |
234 |             other_err.0.downcast_ref::<webpki::Error>()
    |                         ------------   ^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `webpki::Error`
    |                         |
    |                         required by a bound introduced by this call
    |
note: required by a bound in `<(dyn std::error::Error + Send + Sync + 'static)>::downcast_ref`
   --> /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library/core/src/error.rs:271:5

For more information about this error, try `rustc --explain E0277`.
error: could not compile `rustls-platform-verifier` (lib) due to 1 previous error

Screenshots or Videos

No response

Additional Context

See rustls/rustls-platform-verifier#164. You probably need to update the rustls-platform-verifier to something newer, probably 0.5.2.

Operating System

Linux

Operating System Version

Ubuntu 24.10

Shell

Bash

Build Version

Commit hash a3f9e99

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions