Replace the Node-hosted Wasm sample with a Wasmtime WASI-HTTP component
Les mainteneurs répondent en général sous 4 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 15/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- kubernetes, rust, wasm
- Domaine
- api, backend, infrastructure
Piste de recherche
Start with docs/designs/runtime-adapters.md and upstream issue hyperlight-dev/hyperlight-unikraft#196 to understand the required serving API and prerequisite. Then trace the existing Node/Wasm adapter and docs/examples/hello-wasm to map the workflow and tests to update. Done means the Rust WASI-HTTP 0.3 component builds through the normal container workflow and passes local HTTP and deployed snapshot-restore checks, including request bodies and streamed responses.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Replace the Node-hosted Wasm sample with a real Wasmtime-backed WASI-HTTP 0.3 component running inside Hyperlight. Keep it deployable as an HTTP Lampyr Service, rather than substituting a command-line WASI example or a custom TCP/JSON wrapper.
Upstream prerequisite
Track native HTTP hosting in hyperlight-dev/hyperlight-unikraft#196. The existing upstream driver supports commands, library components, and async WASI 0.3 exports, but does not currently provide the standard WASI-HTTP host. Implement and validate that upstream first, including HTTP resource/stream handling and serving after snapshot restore. Lampyr should consume its supported serving API and pinned release assets, not maintain a separate host or fork.
Lampyr changes
- Keep
ly init --runtime wasm,ly dev,ly build, andly deployas the user workflow. - Generate a minimal Rust WASI-HTTP component by default and compile it automatically in the container build. Users should not need separate Cargo, rustup, wasm-tools, Wasmtime, or component-conversion commands.
- Map the Wasm runtime to the upstream Wasmtime filesystem image and serving entrypoint; pin and verify compatible assets.
- Wasm needs its own handler ABI: the Service Handler / Runtime Adapter design (
docs/designs/runtime-adapters.md) excludes it. Align the component's WIT world and generated bindings with the same Service Handler semantics. - Remove the Node/Wasm adapter rather than retaining it, and regenerate
docs/examples/hello-wasm. - Update directly related docs and regression coverage; verify local HTTP execution and a deployed, snapshot-restored service through normal ingress, including request bodies and streamed responses.
Scope
WASI-HTTP 0.3 is the target contract, not HTTP/3. Additional command modes, WebSockets/gRPC support, and WASI-HTTP 0.2 compatibility are outside this change. Wasmtime currently marks its HTTP 0.3 implementation experimental, so compatibility must be pinned and tested explicitly.
- Langage dominant
- Rust
- Étoiles
- 3
- Forks
- 2
- Merge moyen
- 3 j 57 min
- PR mergées (30 j)
- 17
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de hyperlight-dev/lampyr
-
a-needs-info dependencies
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
hyperlight-dev/lampyr#49 ·
Les mainteneurs répondent en général sous 4 jours
-
a-needs-info
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
hyperlight-dev/lampyr#34 ·
Les mainteneurs répondent en général sous 4 jours
-
Provision production AKS ingress DNS and TLSPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
hyperlight-dev/lampyr#76 ·
Les mainteneurs répondent en général sous 4 jours
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
hyperlight-dev/lampyr#75 ·
Les mainteneurs répondent en général sous 4 jours
-
a-needs-info enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
hyperlight-dev/lampyr#55 ·
Les mainteneurs répondent en général sous 4 jours
Toutes les issues de hyperlight-dev/lampyr
Issues similaires
-
area:compat area:operations documentation ready-for-agent type:afk
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
ZcashFoundation/zinder#552 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
storytold/vectorcraft#9229 ·
Les mainteneurs répondent en général sous 1 jour