bytecodealliance / bytecodealliance/wit-bindgen

Ability to get the fully resolved name of functions and types

Aperta
#986 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
1.5k
Fork
286
Merge medio
6h 32m
PR unite (30g)
19

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Nell'issue non sono identificati file, test o punti di ingresso; inizia tracciando il modo in cui wit-bindgen rappresenta i mondi, i package, le interfacce e gli elementi rinominati di WIT. Esamina il comportamento esistente della risoluzione dei nomi e i test pertinenti, quindi considera completata la richiesta quando un'API concordata espone i componenti completamente risolti descritti nell'issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust, wasm
Ambito
compilers, devtools
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.