moq-tokio and moq-uring: stop exposing web-transport-proto types in the WebTransport API

オープン
#10,281 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
api, backend

調査の方向性

Read the WebTransport APIs in rs/moq-tokio/src/quic/web/connect.rs, server.rs, and session.rs, then compare them with rs/moq-uring/src/quic/web.rs and each crate's HandshakeError. Define matching crate-owned types for the caller-facing status, headers, and URL, and update both backends to use them. Done means callers no longer depend on web_transport_proto types through these APIs and the two crates expose matching shapes; check the relevant crate tests and the dependency update described in PR #10131.

索引モデルが issue の本文から書いたものです。

説明

moq-tokio's and moq-uring's WebTransport API take and return web_transport_proto types directly, so every 0.x bump of web-transport-proto is a breaking change for both crates even when our own API is unchanged.

Seen in https://github.com/moq-dev/moq/pull/10131: bumping web-transport-proto 0.6 to 0.7 (where ConnectResponse::OK became ConnectResponse::new(StatusCode::OK)) turned a grouped dependency update into chore(deps)!:.

Exposed on main:

  • rs/moq-tokio/src/quic/web/connect.rs: respond(impl Into<ConnectResponse>) and the public response: ConnectResponse field
  • rs/moq-tokio/src/quic/web/server.rs: respond(impl Into<ConnectResponse>)
  • rs/moq-tokio/src/quic/web/session.rs: response() -> Option<&ConnectResponse>
  • rs/moq-uring/src/quic/web.rs: respond(impl Into<proto::ConnectResponse>) and response() -> Option<&proto::ConnectResponse>
  • each crate's HandshakeError, if it carries proto types

Ask

Give both crates their own small types for what callers actually use (status code, headers, the request/response URL), so a web-transport-proto bump is a patch. The two crates' shapes should match, since they're the same API on two backends. Doing it before the 0.22 cut lets the break ride that release.

(Written by Claude Opus 5.5)

主要言語
Rust
スター
1.6k
フォーク
251
平均マージ
10時間 10分
マージ済み PR(30日)
832

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

moq-dev/moq のほかの issue

moq-dev/moq の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。