bytecodealliance / bytecodealliance/component-docs
Remove command component from Calculator Tutorial
- 主要言語
- Rust
- スター
- 137
- フォーク
- 88
- 平均マージ
- 5日 12時間
- マージ済み PR(30日)
- 4
説明
Instead of composing with a command component, the `calculator` world could export `wasi:cli/run` itself:
```
package docs:calculator@0.1.0;
interface calculate {
enum op {
add,
}
eval-expression: func(op: op, x: u32, y: u32) -> u32;
}
world calculator {
export calculate;
import docs:adder/add@0.1.0;
}
world app {
import calculate;
export wasi:cli/run; <--- suggested addition
}
```
コントリビューションガイド
調査の方向性
Start with the Calculator Tutorial and inspect how its calculator and app worlds currently use the command component. Remove that composition so the calculator world exports wasi:cli/run directly, and confirm the tutorial's world definitions and examples remain consistent.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- wasm
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100