bytecodealliance / bytecodealliance/componentize-py
Use `wasm-pkg-tools` to pull interface and world definitions from well-known registries
- Langage dominant
- Rust
- Étoiles
- 277
- Forks
- 51
- Merge moyen
- 12 h 10 min
- PR mergées (30 j)
- 10
Description
[`wasm-pkg-tools`](https://github.com/bytecodealliance/wasm-pkg-tools) provides tools for downloading published WIT definitions (in binary form) from registries, including [default registries](https://github.com/bytecodealliance/wasm-pkg-tools#default-fallback-registries). Ideally, if a `componentize-py` user targets a world that's been published to such a registry, e.g. `wasi:cli/command@0.2.0`, they shouldn't need to provide any WIT files (nor, in the case of WASI worlds, even specify the registry). Instead, `componentize-py` should use `wasm-pkg-tools` to query any available registries and download the world and interface definitions automatically.
In short, we should add a new option for specifying one or more registries (and use the default registries otherwise), plus another option to disable using the default registries if desired. I imagine we'll still want to prioritize using local WIT files if provided.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Retrace le point d’entrée actuel de résolution des WIT et des worlds de componentize-py, puis examine comment wasm-pkg-tools interroge les registries par défaut et ceux fournis explicitement. Le travail est terminé lorsque des worlds publiés tels que wasi:cli/command@0.2.0 peuvent être résolus sans fichiers WIT locaux, que les registries personnalisés et la désactivation des valeurs par défaut sont pris en charge, et que les fichiers WIT locaux conservent la priorité ; ajoute ou exécute la couverture pour ces cas.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python, rust, wasm
- Domaine
- build-system, cli, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 55/100