What changes to WIT are "compatible" and which are not?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 50/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- wasm
- Ambito
- documentation
Direzione di ricerca
Inizia esaminando gli scenari di compatibilità WIT elencati nell’issue e la guida Protobuf collegata “Updating a Message Type”. Documenta se ciascuna delle sei modifiche è compatibile nelle direzioni old-host/new-guest e new-host/old-guest, includendo le condizioni e le limitazioni rilevanti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Suppose I have a WIT definition, and some old WebAssembly components built/defined using the old definition, and then I want to make a change to my interface without requiring the component to be modified or rebuilt. Or perhaps I want to do the same in the reverse direction—make a change to my WASM component that remains backward-compatible with a host using an older WIT.
What changes to the WIT could be considered "compatible", if any, and which are not?
In essence, I'm looking for guidance similar to what Protobuf offers in their Updating a Message Type documentation.
A few example questions/scenarios I can think of: are the following compatible in one or both directions (old host/new guest vs. new guest/old host)?
- Removing an argument to a function
- Adding a new optional argument to a function
- Adding a new optional field to a struct
- Removing a field from a struct
- Adding a new case to a variant
- Removing a case from a variant
- Lingua principale
- Rust
- Stelle
- 137
- Fork
- 88
- Merge medio
- 10h 38m
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bytecodealliance/component-docs
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
bytecodealliance/component-docs#294 · 1 commento ·
-
Fix Python Tutorial Apertabug lang/python
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
bytecodealliance/component-docs#348 · 2 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Tutte le issue di bytecodealliance/component-docs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
ontola/atomic-server#1625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
VirusTotal/yara-x#777 ·
-
has_tail_capacity wraps and get_writable_raw_unchecked commits raw_len before the bounds check Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
stratum-mining/stratum#2404 ·
-
bug ci good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100