You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: shopify_function/README.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,46 @@ A crate to help developers build [Shopify Functions].
10
10
11
11
See the [example_with_targets] for details on usage, or use the following guide to convert an existing Rust-based function.
12
12
13
+
## Updating an existing function to using shopify_function 2.0.0 and higher
14
+
15
+
If you are using a version less than `1.0.0`, you should update to version `1.1.1` as outlined below before following these steps.
16
+
17
+
1.[Update to the latest](https://shopify.dev/docs/api/shopify-cli#installation) Shopify CLI version.
18
+
19
+
2. Install the `wasm32-unknown-unknown` build target using [`rustup target`](https://rust-lang.github.io/rustup/cross-compilation.html):
20
+
21
+
```terminal
22
+
rustup target add wasm32-unknown-unknown
23
+
```
24
+
25
+
3. Update your build `command` and `path` in the `[extensions.build]` section of your [`shopify.extension.toml`](https://shopify.dev/docs/api/functions/latest#configuration) to use `wasm32-unknown-unknown` instead of `wasm32-wasip1`. Replace `RUST-PACKAGE-NAME` with the `name` from your `Cargo.toml`:
0 commit comments