Skip to content

Commit 43c003d

Browse files
authored
Merge pull request #600 from Shopify/update-rust-functions
Update rust functions
2 parents 056e0e7 + d2ee502 commit 43c003d

10 files changed

+238
-219
lines changed

Cargo.lock

+121-103
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

discounts/rust/discount/default/shopify.extension.toml.liquid

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
api_version = "2025-04"
1+
api_version = "unstable"
22

33
[[extensions]]
44
name = "t:name"
5-
handle = "{{handle}}"
5+
handle = "{{handle | replace: " ", "-" | downcase}}"
66
type = "function"
77
{% if uid %}uid = "{{ uid }}"{% endif %}
88
description = "t:description"
@@ -19,6 +19,8 @@ description = "t:description"
1919

2020
[extensions.build]
2121
command = "cargo build --target=wasm32-wasip1 --release"
22-
path = "target/wasm32-wasip1/release/{{handle | replace: " ", "-" | downcase}}.wasm"
22+
path = "{{handle | replace: " ", "-" | downcase}}.wasm"
2323
watch = [ "src/**/*.rs" ]
2424

25+
[extensions.ui]
26+
handle = "{{handle}}"

0 commit comments

Comments
 (0)