Repository navigation
fix: enable hyper-rustls/ring for the https feature - #229
Conversation
The https feature pulled in hyper-rustls but not its ring crypto backend, so building --features https,remote failed to compile. Adds hyper-rustls/ring so every feature combination that touches HTTPS links a crypto provider.
c21d797 to
22ce6c9
Compare
|
@FalkWoldmann have started splitting into separate PRs. This is the starting point |
|
Running |
There was a problem hiding this comment.
Pull request overview
This PR fixes a feature-flag combination build failure by ensuring the https feature enables the correct crypto backend for hyper-rustls, so cargo build --features https,remote compiles successfully.
Changes:
- Add
hyper-rustls/ringto thehttpsfeature sohyper-rustlshas its Ring-based crypto provider enabled whenhttpsis selected.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Two latent name-resolution failures surfaced by the restructured CI, both
in `#[cfg(feature = "https")]` code that isn't exercised by the default
feature build:
- `src/server/server.rs`: the `IOError` and `TlsError` variants of
`server::Error` were used unqualified but omitted from the `Error::{...}`
import list, so `--all-features` failed with E0425. Qualify both call
sites with `Error::` (and collapse the redundant `IOError` closure).
- `src/server/builder.rs`: `use std::path::PathBuf` was gated on the
`record` feature alone, but `PathBuf` is also used throughout the
`https` code paths. Any feature set with `https` but without `record`
(e.g. the MSRV job) failed with E0412. Widen the guard to
`any(feature = "record", feature = "https")`.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BA7JYiqBPfFxRLKjMk2V62
c2b2245 to
3d49370
Compare
@danieleades I think your author attribution got swallowed :( should I revert this so we can re-add these commits, now with you correctly being stated as author?
|
I'm not too fussed to be honest. If you squash merge does that provide the right attribution? No need to rewrite history |
|
Not sure. I think i rebased the changes, so maybe that caused the issue? I will just merge them normally in the future. Sorry about that! |

The
httpsfeature pulled inhyper-rustlsbut not itsringcrypto backend, so building--features https,remotefailed to compile. The pairwisecargo hackcheck in the CI overhaul surfaced this.Independent of the other CI-overhaul PRs.