bytecodealliance / bytecodealliance/componentize-py
Add support for type aliases
- Dominant language
- Rust
- Stars
- 277
- Forks
- 51
- Avg merge
- 12h 10m
- Merged PRs (30d)
- 10
Description
Currently, `componentize-py` generates no code for type aliases; instead, it just uses the dealiased types directly. Instead, we should generate assignment expressions for each alias and use the alias in all the same places (e.g. function parameter types, etc.) that the original WIT files used them.
Contributor guide
Research direction
No files or tests are named. Start by locating componentize-py’s type-generation and type-reference handling, then trace how WIT aliases are currently dealiased in generated Python. Done means emitting an assignment for every alias and retaining that alias wherever the original WIT uses it, including function parameter types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust, wasm
- Domain
- compilers, devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100