bytecodealliance / bytecodealliance/component-docs
Remove command component from Calculator Tutorial
- 主要语言
- Rust
- 星标
- 137
- 派生
- 88
- 平均合并
- 5 天 12 小时
- 30 天内合并 PR
- 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