Replace the Node-hosted Wasm sample with a Wasmtime WASI-HTTP component
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- kubernetes, rust, wasm
- Lĩnh vực
- api, backend, infrastructure
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 3
- Fork
- 2
- Merge trung bình
- 3 ngày 57 phút
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hyperlight-dev/lampyr
-
a-needs-info dependencies
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hyperlight-dev/lampyr#49 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
a-needs-info
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
hyperlight-dev/lampyr#34 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Provision production AKS ingress DNS and TLSCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
hyperlight-dev/lampyr#76 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
hyperlight-dev/lampyr#75 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
a-needs-info enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
hyperlight-dev/lampyr#55 ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của hyperlight-dev/lampyr
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
-
tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vfarcic/dot-agent-deck#2512 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
pop-os/cosmic-applets#1641 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
pop-os/cosmic-store#650 ·