bytecodealliance / bytecodealliance/component-docs

A section on the implications of including worlds

未關閉
#246 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
137
分支
88
平均合併
5 天 12 小時
30 天內合併 PR
4

描述

In https://github.com/bytecodealliance/component-docs/issues/245 a user encountered a bump when trying to import functionality from `wasi:http` that I'd guess will occur again.

Not sure if this belongs in the subsection on worlds, since it could also be part of https://github.com/bytecodealliance/component-docs/issues/240, or there could perhaps be a section that pertains to all guest languages, as it probably isn't unique to the rust experience.

The user included `wasi:http/proxy` and didn't realize that they would have to implement the interfaces exported by it, as they were really only after importing the functionality that that world provided, and had no intention of authoring a component that exported any of it's functionality. Ideally we would clearly inform users to reserve `include` usage for when they want to define a world that is a superset of another.

貢獻指南

開啟貢獻指南

研究方向

閱讀連結的 issue #245 和 #240,以及現有的 worlds 子章節,以了解圍繞包含 wasi:http/proxy 所回報的困惑。完成的標準是文件清楚地說明 include 用於定義一個超集 world,並區分匯入功能與實作匯出的介面。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust, wasm
領域
documentation
Issue 類型
文件
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。