bytecodealliance / bytecodealliance/wit-bindgen
Consider splitting configuration of foreign types into a new `generate!` macro config key
- Lingua principale
- Rust
- Stelle
- 1.5k
- Fork
- 286
- Merge medio
- 6h 32m
- PR unite (30g)
- 19
Descrizione
In https://github.com/bytecodealliance/wit-bindgen/pull/972 the default for whether bindings would be generated for foreign (i.e., not in the same package as the target world) types was flipped from being generated by default to not. Users could still opt-into generating code for foreign types by using the `generate` keyword.
The use of a special keyword, however, might not be the most discoverable. Instead we may wish to introduce a new key in the `generate!` macro.
In short the following...
```rust
with: {
"wasi:io/poll": wasi::io::poll,
"some:package/my-interface": generate,
},
```
...would become the following...
```rust
with: {
"wasi:io/poll": wasi::io::poll,
},
generate: [
"some:package/my-interface"
]
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia con la configurazione della macro generate! descritta nell’issue e segui il modo in cui la chiave with esistente gestisce il valore generate per i tipi esterni. Confronta la configurazione attuale e quella proposta, quindi verifica che la nuova chiave generate supporti lo stesso comportamento opt-in, mentre with rimanga per i mapping.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100