Skip to content

Commit

Permalink
Merge pull request #18 from taisukef/fix_doc
Browse files Browse the repository at this point in the history
Fix doc, Tutorials / Create a Rust worker
  • Loading branch information
gzurl authored Oct 25, 2022
2 parents 3740ec7 + f96cb0d commit b353ac3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/docs/tutorials/rust-workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In this example, the worker will get a request and print all the related informa
1. Create a new Rust project:

```bash
cargo new --name worker
cargo new --name worker worker
```

1. Add the dependencies to the `Cargo.toml` file:
Expand Down Expand Up @@ -95,7 +95,7 @@ In this example, the worker will get a request and print all the related informa
```bash
# Install the component and build
rustup target add wasm32-wasi && \
cargo build release
cargo build --release --target wasm32-wasi
```

1. Run your worker with `wws`. If you didn't download the `wws` server yet, check our [Getting Started](../start.md) guide.
Expand All @@ -122,7 +122,7 @@ To add a KV store to your worker, follow these steps:
1. Create a new Rust project:
```bash
cargo new --name worker-kv
cargo new --name worker-kv worker-kv
```
1. Add the dependencies to the `Cargo.toml` file:
Expand Down Expand Up @@ -200,7 +200,7 @@ To add a KV store to your worker, follow these steps:
```bash
# Install the component and build
rustup target add wasm32-wasi && \
cargo build release
cargo build --release --target wasm32-wasi
```
1. Create a `worker-kv.toml` file with the following content. Note the name of the TOML file must match the name of the handler. In this case we have `worker-kv.wasm` and `worker-kv.toml` in the same folder (`target/wasm32-wasi/release`):
Expand Down

0 comments on commit b353ac3

Please sign in to comment.