Skip to content

Commit

Permalink
Merge branch 'main' of github.com:bytecodealliance/wasm-tools into wa…
Browse files Browse the repository at this point in the history
…smfx-merge
  • Loading branch information
dhil committed Jun 11, 2024
2 parents 628c1c3 + 2a80d3d commit a678aa1
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 318 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ jobs:
- uses: actions/checkout@v4
- uses: bytecodealliance/wasmtime/.github/actions/[email protected]
- run: rustup component add rustfmt
- run: printf "\n" > playground/component/src/bindings.rs
# Note that this doesn't use `cargo fmt` because that doesn't format
# modules-defined-in-macros which is in use in `wast` for example. This is
# the best alternative I can come up with at this time
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defaults:

jobs:
build:
name: Build
name: Build playground deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -44,7 +44,7 @@ jobs:
path: "./playground/dist"

deploy:
name: Deploy
name: Deploy playground
if: github.ref == 'refs/heads/main'
needs: build
permissions:
Expand Down
1 change: 1 addition & 0 deletions playground/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
src/bindings.rs
component-built/
dist/
2 changes: 1 addition & 1 deletion playground/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Playground

This is a simple online playground for `wasm-tools parse`, available at https://bytecodealliance.gthub.io/wasm-tools/.
This is a simple online playground for `wasm-tools parse`, available at https://bytecodealliance.github.io/wasm-tools/.

## Building

Expand Down
10 changes: 3 additions & 7 deletions playground/component/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@ wasmprinter = { workspace = true }

[lib]
crate-type = ["cdylib"]

[profile.release]
codegen-units = 1
opt-level = "s"
debug = false
strip = true
lto = true
test = false
doctest = false
doc = false

[package.metadata.component]
package = "component:component"
Expand Down
306 changes: 0 additions & 306 deletions playground/component/src/bindings.rs

This file was deleted.

2 changes: 1 addition & 1 deletion playground/pages/parse.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h1>wasm-tools parse</h1>
<div class="textarea-container">
<div class="description">
<p>Translate from the WebAssembly text format to binary using <a href="https://github.com/bytecodealliance/wasm-tools"><code>wasm-tools parse</code></a>.
You can go the other direction using <a href="/print"><code>print</code></a>.</p>
You can go the other direction using <a href="print"><code>print</code></a>.</p>
</div>
<div class="input-header">wat</div>
<div class="input">
Expand Down
2 changes: 1 addition & 1 deletion playground/pages/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h1>wasm-tools print</h1>
<div class="textarea-container">
<div class="description">
<p>Translate WebAssembly binaries to text format using <a href="https://github.com/bytecodealliance/wasm-tools"><code>wasm-tools print</code></a>.
You can go the other direction using <a href="/parse"><code>parse</code></a>.</p>
You can go the other direction using <a href="parse"><code>parse</code></a>.</p>
</div>

<div class="output-header">
Expand Down

0 comments on commit a678aa1

Please sign in to comment.