bytecodealliance / bytecodealliance/component-docs

A section on the implications of including worlds

Ouverte
#246 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
137
Forks
88
Merge moyen
5 j 12 h
PR mergées (30 j)
4

Description

In https://github.com/bytecodealliance/component-docs/issues/245 a user encountered a bump when trying to import functionality from `wasi:http` that I'd guess will occur again.

Not sure if this belongs in the subsection on worlds, since it could also be part of https://github.com/bytecodealliance/component-docs/issues/240, or there could perhaps be a section that pertains to all guest languages, as it probably isn't unique to the rust experience.

The user included `wasi:http/proxy` and didn't realize that they would have to implement the interfaces exported by it, as they were really only after importing the functionality that that world provided, and had no intention of authoring a component that exported any of it's functionality. Ideally we would clearly inform users to reserve `include` usage for when they want to define a world that is a superset of another.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Lisez les issues liées #245 et #240 ainsi que la sous-section existante sur les worlds afin de comprendre la confusion signalée autour de l’inclusion de wasi:http/proxy. La tâche est terminée lorsque la documentation explique clairement que include sert à définir un world surensemble et distingue l’importation de fonctionnalités de l’implémentation d’interfaces exportées.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust, wasm
Domaine
documentation
Type d'issue
Documentation
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.