adding missing step of dependencies installation (#5492)
This commit is contained in:
committed by
GitHub
parent
a71f679453
commit
e3c7bf638a
@@ -9,6 +9,12 @@ cargo new --bin rust_wasi_markdown_parser
|
|||||||
cd rust_wasi_markdown_parser
|
cd rust_wasi_markdown_parser
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Also, we need to add the `structopt` and `pulldown_cmark` crates to our project:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cargo add structopt pulldown_cmark
|
||||||
|
```
|
||||||
|
|
||||||
Then, we will open the `src/main.rs` and enter the following contents. Please see the comments to understand what our program will be doing.
|
Then, we will open the `src/main.rs` and enter the following contents. Please see the comments to understand what our program will be doing.
|
||||||
|
|
||||||
## `src/main.rs`
|
## `src/main.rs`
|
||||||
@@ -50,7 +56,7 @@ wasmtime --dir . target/wasm32-wasi/debug/rust_wasi_markdown_parser.wasm -- ./ex
|
|||||||
|
|
||||||
Which should look like the following:
|
Which should look like the following:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<h1>Hello!</h1>
|
<h1>Hello!</h1>
|
||||||
<p>I am example markdown for this demo!</p>
|
<p>I am example markdown for this demo!</p>
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user