File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
examples/spin-timer/app-example/src Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ jobs:
201
201
202
202
# Install all the toolchain dependencies
203
203
- name : Install Rust wasm target
204
- run : rustup target add wasm32-wasip1 wasm32-unknown-unknown
204
+ run : rustup target add wasm32-wasip1 wasm32-wasip2 wasm32- unknown-unknown
205
205
- uses : mlugg/setup-zig@v2
206
206
with :
207
207
version : ' 0.14.1'
@@ -289,7 +289,7 @@ jobs:
289
289
run : rustup target add --toolchain ${{ env.RUST_VERSION }} ${{ matrix.config.target }}
290
290
291
291
- name : " Install Wasm Rust target"
292
- run : rustup target add wasm32-wasip1 wasm32-unknown-unknown --toolchain ${{ env.RUST_VERSION }}
292
+ run : rustup target add wasm32-wasip1 wasm32-wasip2 wasm32- unknown-unknown --toolchain ${{ env.RUST_VERSION }}
293
293
294
294
- name : setup for cross-compiled linux aarch64 build
295
295
if : matrix.config.target == 'aarch64-unknown-linux-gnu'
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ jobs:
104
104
run : rustup target add --toolchain ${{ env.RUST_VERSION }} ${{ matrix.config.target }}
105
105
106
106
- name : " Install Wasm Rust target"
107
- run : rustup target add wasm32-wasip1 wasm32-unknown-unknown --toolchain ${{ env.RUST_VERSION }}
107
+ run : rustup target add wasm32-wasip1 wasm32-wasip2 wasm32- unknown-unknown --toolchain ${{ env.RUST_VERSION }}
108
108
109
109
- name : setup for cross-compiled linux aarch64 build
110
110
if : matrix.config.target == 'aarch64-unknown-linux-gnu'
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ wit_bindgen::generate!({
7
7
use fermyon:: spin:: variables;
8
8
9
9
struct MySpinTimer ;
10
+ export ! ( MySpinTimer ) ;
10
11
11
12
impl Guest for MySpinTimer {
12
13
fn handle_timer_request ( ) {
You can’t perform that action at this time.
0 commit comments