WASI HTTP version

Abierto
#1,280 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
rust
Área
api

Línea de trabajo

No se mencionan archivos ni pruebas del repositorio. Empieza revisando la ruta de cliente existente basada en reqwest y comparándola con el fork progenitor-wasi-http enlazado, incluida su dependencia de wstd y las limitaciones de wasi-http. Para darlo por terminado sería necesario acordar un diseño de upstreaming y el alcance de implementación correspondiente.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
1k
Forks
142
Merge medio
19 h 13 min
PR fusionados (30 d)
16

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de oxidecomputer/progenitor

Todos los issues de oxidecomputer/progenitor

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.