WASI HTTP version

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust
領域
api

調査の方向性

リポジトリのファイルやテストは指定されていません。まず、既存のreqwestベースのクライアントパスを確認し、リンクされたprogenitor-wasi-httpフォークと比較してください。これには、そのwstd依存関係とwasi-httpの制限事項も含まれます。完了には、合意されたupstreaming設計と、それに対応する実装範囲が必要です。

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

説明

We are building a platform (Golem) built on the WebAssembly system interface (WASI). Unfortunately reqwest at the moment does not support wasi-http (WASI's http interface), and although there are discussions and draft pull requests to introduce support for it, it does not look like it is going to happen anytime soon.
The most production ready Rust wrapper around wasi-http at the moment is the client in wstd that also includes a wasi compatible async runtime.

I've forked progenitor and made a wstd based version if it: https://github.com/golemcloud/progenitor-wasi-http

It has some serious limitations compared to the real version though, due to the limitations of wasi-http:

  • no websocket upgrade
  • no streaming (body and paging)
  • more constrained requirements for what can be passed as a raw body

With all these limitations it's a very useful library for platforms based on wasi-http.

I would be happy to work on somehow making this part of the official library, but it's not straightforward at all, with reqwest completely replaced and all these other limitations introduced. Maybe it does not worth the effort; I primarily opened this issue to discuss this.
If there is interest in upstreaming it, let's discuss how; otherwise we can just keep it as a fork for now.

主要言語
Rust
スター
1k
フォーク
142
平均マージ
19時間 13分
マージ済み PR(30日)
16

環境構築

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

はじめの一歩

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

oxidecomputer/progenitor のほかの issue

oxidecomputer/progenitor の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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