Fix crash on https servers, version 0.1.2 #32

Merged
mett merged 2 commits from fix/tls-crypto-provider into main 2026-10-29 18:56:58 +01:00
Owner

0.1.1 crashes (SIGABRT) about half a minute after signing in to a server over https:

Could not automatically determine the process-level CryptoProvider from Rustls crate features.

The updater plugin (M9) enables rustls' ring backend, reqwest enables aws-lc-rs. With both compiled in rustls can't pick a default, and the socket's wss:// connection (tokio-tungstenite) panics when it builds its TLS config. reqwest names its provider itself, so signing in worked and only the socket crashed. The test server is plain http, so no test caught it.

  • tls::init() installs aws-lc-rs as the process default at the start of run() (direct rustls dependency with the same features; no new crates in the lockfile).
  • tests/tls.rs opens a wss:// connection to a local listener: it panics with the message above without init() and passes with it.
  • Version 0.1.2 with release notes and the Flatpak metainfo entry. The notes also mention the in-app logo, so merge #31 before releasing.

Tests: cargo fmt, clippy -D warnings, full cargo test against the test server (all pass), bindings unchanged, prettier on the changed files. Not run: a release build against a real https server.

🤖 Generated with Claude Code

0.1.1 crashes (SIGABRT) about half a minute after signing in to a server over https: > Could not automatically determine the process-level CryptoProvider from Rustls crate features. The updater plugin (M9) enables rustls' `ring` backend, reqwest enables `aws-lc-rs`. With both compiled in rustls can't pick a default, and the socket's `wss://` connection (tokio-tungstenite) panics when it builds its TLS config. reqwest names its provider itself, so signing in worked and only the socket crashed. The test server is plain http, so no test caught it. - `tls::init()` installs aws-lc-rs as the process default at the start of `run()` (direct `rustls` dependency with the same features; no new crates in the lockfile). - `tests/tls.rs` opens a `wss://` connection to a local listener: it panics with the message above without `init()` and passes with it. - Version 0.1.2 with release notes and the Flatpak metainfo entry. The notes also mention the in-app logo, so merge #31 before releasing. **Tests:** cargo fmt, clippy `-D warnings`, full `cargo test` against the test server (all pass), bindings unchanged, prettier on the changed files. Not run: a release build against a real https server. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The updater plugin brought rustls' ring backend next to reqwest's
aws-lc-rs, so rustls couldn't pick a crypto provider and panicked when
the socket connected to an https server. Install aws-lc-rs at startup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mett merged commit 728984b5f7 into main 2026-10-29 18:56:58 +01:00
Sign in to join this conversation.
No description provided.