Commit d953307
authored
Extract
* Extract `json-from-wast` subcommand to its own crate
Polish it up a bit for publication to crates.io to get used externally
as well, for example in Rust projects that want to consume the AST
produced here.
* Refine the AST of json-from-wast
This mostly doesn't change the JSON representation or how things are
serialized, but this does change the Rust-level representation to make
it easier to consume from a Rust crate (less stringly-typed). A few
minor adjustments were made and additionally new structures are
supported (e.g. component model types)
* Undo some `dbg!`
* Undo some `gc.rs` changes
* Fix MSRV compat
* Add to publish list
* Remove readme directivejson-from-wast to its own crate (#2247)1 parent 40fe970 commit d953307
File tree
9 files changed
+1180
-706
lines changed- ci
- crates/json-from-wast
- src
- src/bin/wasm-tools
- tests/snapshots/testsuite/proposals
- gc
- wasm-3.0
9 files changed
+1180
-706
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
223 | 227 | | |
224 | 228 | | |
225 | 229 | | |
| |||
291 | 295 | | |
292 | 296 | | |
293 | 297 | | |
294 | | - | |
| 298 | + | |
295 | 299 | | |
296 | 300 | | |
297 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments