bytecodealliance / bytecodealliance/wit-bindgen
Ability to get the fully resolved name of functions and types
- Vorherrschende Sprache
- Rust
- Sterne
- 1.5k
- Forks
- 288
- Ø Merge
- 6 Std. 32 Min.
- Gemergte PRs (30 T.)
- 19
Beschreibung
In my experience, it is currently really difficult to get the complete, fully resolved name of a function or type. This is especially annoying when one needs not just the name itself but also the namespace. So it would be great to have the ability to get the fully resolved name of functions and types from the perspective of a world. By “fully resolved” I mean that it includes (where applicable) the package, interface and the with `as` renamed function/type name.
Something kind of like:
```rust
struct FullName {
package: Option,
interface: Option,
name: Option,
as_: Option,
}
```
I haven’t completely figured out how names (and namespaces) work in Wit yet, so this may look different in practice.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
In der Issue ist keine Datei, kein Test und kein Einstiegspunkt angegeben; beginne damit nachzuverfolgen, wie wit-bindgen WIT-Welten, Pakete, Schnittstellen und umbenannte Elemente darstellt. Überprüfe das bestehende Verhalten der Namensauflösung und die relevanten Tests. Betrachte die Anfrage anschließend als abgeschlossen, wenn eine vereinbarte API die in der Issue beschriebenen vollständig aufgelösten Komponenten bereitstellt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust, wasm
- Bereich
- compilers, devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100