Replace the Node-hosted Wasm sample with a Wasmtime WASI-HTTP component
Maintainer antworten meist innerhalb von 4 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 15/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- kubernetes, rust, wasm
- Bereich
- api, backend, infrastructure
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Rust
- Sterne
- 3
- Forks
- 2
- Ø Merge
- 3 T. 57 Min.
- Gemergte PRs (30 T.)
- 17
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus hyperlight-dev/lampyr
-
a-needs-info dependencies
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
hyperlight-dev/lampyr#49 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
a-needs-info
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
hyperlight-dev/lampyr#34 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Provision production AKS ingress DNS and TLSEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
hyperlight-dev/lampyr#76 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
hyperlight-dev/lampyr#75 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
a-needs-info enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
hyperlight-dev/lampyr#55 ·
Maintainer antworten meist innerhalb von 4 Tagen
Alle Issues in hyperlight-dev/lampyr
Ähnliche Issues
-
area:compat area:operations documentation ready-for-agent type:afk
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
ZcashFoundation/zinder#552 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
storytold/vectorcraft#9229 ·
Maintainer antworten meist innerhalb von 1 Tag