This repository was archived by the owner on May 3, 2022. It is now read-only.
File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
# WebAssembly with Golang
2
2
3
- ![ Golang Webassembly] ( /static/ img/tutorial/golangWasi.jpg?raw=true )
3
+ ![ Golang Webassembly] ( /img/tutorial/golangWasi.jpg?raw=true )
4
4
5
5
## Environment setup
6
6
@@ -63,7 +63,7 @@ func main(){
63
63
``` bash
64
64
go run main.go
65
65
```
66
- ![ Golang Screenshot1] ( /static/ img/tutorial/golangRunScreenshot.png?raw=true )
66
+ ![ Golang Screenshot1] ( /img/tutorial/golangRunScreenshot.png?raw=true )
67
67
68
68
69
69
@@ -83,4 +83,4 @@ file main.wasm
83
83
``` bash
84
84
wasmtime main.wasm
85
85
```
86
- ![ Golang Screenshot2] ( /static/ img/tutorial/golangWasmScreenshot.png?raw=true )
86
+ ![ Golang Screenshot2] ( /img/tutorial/golangWasmScreenshot.png?raw=true )
Original file line number Diff line number Diff line change 1
1
# WebAssembly with Rust
2
2
3
- ![ Rust WASI] ( /static/ img/tutorial/rustWasi.jpg?raw=true )
3
+ ![ Rust WASI] ( /img/tutorial/rustWasi.jpg?raw=true )
4
4
5
5
## Environment setup
6
6
@@ -69,14 +69,14 @@ fn fib (n: u32) -> u32 {
69
69
cargo build
70
70
cargo run
71
71
```
72
- ![ Rust Screenshot1] ( /static/ img/tutorial/rustRunSreenshot.png?raw=true )
72
+ ![ Rust Screenshot1] ( /img/tutorial/rustRunSreenshot.png?raw=true )
73
73
74
74
2 . Compile to wasm
75
75
76
76
``` bash
77
77
cargo build --target=wasm32-wasi
78
78
```
79
- ![ Rust Screenshot2] ( /static/ img/tutorial/rustCompileScreenshot.png?raw=true )
79
+ ![ Rust Screenshot2] ( /img/tutorial/rustCompileScreenshot.png?raw=true )
80
80
81
81
82
82
3 . The wasm file created in release folder of wasi32
@@ -91,6 +91,6 @@ file target/wasm32-wasi/release/demo.wasm
91
91
92
92
wasmtime target/wasm32-wasi/release/demo.wasm
93
93
```
94
- ![ Rust Screenshot3] ( /static/ img/tutorial/rustWasm.png?raw=true )
94
+ ![ Rust Screenshot3] ( /img/tutorial/rustWasm.png?raw=true )
95
95
96
96
You can’t perform that action at this time.
0 commit comments