Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 986975f

Browse files
committed
add wasmer instructions to readme
1 parent 87a1ee7 commit 986975f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,19 @@ assert_eq!(template, "data foo");
146146
```
147147

148148
You can also check more complicated filter (like [`render_comment`](https://github.com/lib-ruby-parser/nodes/blob/master/src/filters/render_comment.rs)) to understand how parameters can be passed.
149+
150+
## Publishing codegen script to wasmer.io
151+
152+
1. bump version in `wasmer.toml`
153+
2. `cargo build --example codegen --release --target wasm32-wasi`
154+
3. `wasmer publish`
155+
156+
Once published can be executed with
157+
158+
```sh
159+
$ wasmer run \
160+
--mapdir /pwd:. \
161+
iliabylich/lib-ruby-parser-nodes -- \
162+
--template /pwd/template.liquid \
163+
--write-to /pwd/output.ext
164+
```

0 commit comments

Comments
 (0)