Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## Unreleased

### Breaking Changes

* Split websocket TLS backend selection into explicit feature flags:
`tungstenite-native-tls`, `tungstenite-rustls-native-roots`, and
`tungstenite-rustls-webpki-roots`. The base `tungstenite` feature no longer
forces `native-tls`.

## 0.9.0 - 2026-03-25

### Breaking Changes
Expand Down
132 changes: 132 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion samod/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ repository = "https://github.com/alexjg/samod"
[features]
tokio = ["dep:tokio", "dep:tokio-util"]
axum = ["dep:axum", "dep:tokio", "dep:tokio-util"]
tungstenite = ["dep:tungstenite", "dep:tokio-tungstenite", "tokio", "tungstenite/native-tls", "tokio-tungstenite/native-tls"]
tungstenite = ["dep:tungstenite", "dep:tokio-tungstenite", "tokio"]
# TLS backend selection for tungstenite-based dialing (`wss://`).
# Pick one explicitly in downstream crates.
tungstenite-native-tls = ["tungstenite", "tokio-tungstenite/native-tls"]
tungstenite-rustls-native-roots = ["tungstenite", "tokio-tungstenite/rustls-tls-native-roots"]
tungstenite-rustls-webpki-roots = ["tungstenite", "tokio-tungstenite/rustls-tls-webpki-roots"]
gio = ["dep:gio", "dep:glib"]
threadpool = ["dep:rayon"]

Expand Down
3 changes: 3 additions & 0 deletions samod/src/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ impl Repo {
/// # Arguments
///
/// * `url` - The WebSocket URL to connect to (e.g. `"wss://sync.example.com"`).
/// For `wss://` URLs, enable one TLS backend feature:
/// `tungstenite-native-tls`, `tungstenite-rustls-native-roots`,
/// or `tungstenite-rustls-webpki-roots`.
/// * `backoff` - Backoff configuration for reconnection attempts.
///
/// # Returns
Expand Down