Separate code loading from host library loading
未关闭
on hold
- 主要语言
- Rust
- 星标
- 772
- 派生
- 352
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 84
描述
`DefaultHost::load_library()` accepts a `Package` or `MastForest`. These forms load code but do not register event handlers. Execution later fails with `UnhandledEvent` when the code emits an event.
Keep `load_library()` for `HostLibrary`. Add separate methods for loading only a package or MAST forest. Add a test using a core precompile event.
贡献指南
调研方向
Look at the DefaultHost::load_library method and its current handling of Package and MastForest. Identify where event handlers are registered. Create separate methods for loading only a package or MAST forest without registration. Write a test that uses a core precompile event to verify the new behavior.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust
- 领域
- backend, compilers
- Issue 类型
- 重构
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 65/100