Skip to content

Commit

Permalink
README: update for [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Sep 20, 2023
1 parent db5ee87 commit 3d454f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This repository contains code to adapt [WIT](https://github.com/WebAssembly/comp

## WIT → JSON

This package can decode a JSON representation of a fully-resolved WIT file. Serializing WIT into JSON requires a version of wasm-tools as of commit [4975360](https://github.com/bytecodealliance/wasm-tools/commit/49753602683a539b66d0a65ffa11acb402f148bb) ([#1203](https://github.com/bytecodealliance/wasm-tools/pull/1203)), which adds serialization support to the [wit-parser](https://docs.rs/wit-parser/latest/wit_parser/) crate. To convert a WIT file into JSON, run `wasm-tools` with the `-j` argument:
This package can decode a JSON representation of a fully-resolved WIT file. Serializing WIT into JSON requires [wasm-tools](https://crates.io/crates/wasm-tools) v1.0.42 or higher, which includes commit [4975360](https://github.com/bytecodealliance/wasm-tools/commit/49753602683a539b66d0a65ffa11acb402f148bb) ([#1203](https://github.com/bytecodealliance/wasm-tools/pull/1203)), with JSON serialization support. To convert a WIT file into JSON, run `wasm-tools` with the `-j` argument:

```sh
wasm-tools component wit -j example.wit
Expand Down

0 comments on commit 3d454f7

Please sign in to comment.