Skip to content

Commit

Permalink
new: Add experimental WASM plugin support. (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj authored Jul 7, 2023
1 parent 3cfbfb6 commit b95c613
Show file tree
Hide file tree
Showing 63 changed files with 3,801 additions and 205 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,22 @@ jobs:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v0
with:
bins: cargo-nextest
- run: cargo nextest run --workspace
bins: cargo-wasi, cargo-nextest
- run: cargo wasi build -p proto_wasm_test
- run: cargo nextest run --workspace --exclude proto_wasm_test
run:
name: Run
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v0
with:
bins: cargo-wasi
- run: cargo wasi build -p proto_wasm_test --release
- run: cargo run -- --help
- run: cargo run -- list-remote node
- run: cargo run -- list-remote wasm-test
4 changes: 3 additions & 1 deletion .prototools
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[plugins]
moon-test = "schema:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml"
moon-test = "source:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml"
# wasm-test = "source:./target/wasm32-wasi/debug/proto_wasm_test.wasm"
wasm-test = "source:./target/wasm32-wasi/release/proto_wasm_test.wasm"
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## Unreleased

#### 💥 Breaking

- Removed `schema:` as a prefix for TOML based plugins. Use `source:` instead.

#### 🚀 Updates

- Added experimental support for WASM based plugins.
- Not supported on Windows at this time.
- Added `source:` as a plugin prefix.

## 0.11.2

#### 🐞 Fixes
Expand Down
Loading

0 comments on commit b95c613

Please sign in to comment.