Conversation
10da959 to
6a86cbc
Compare
| [extensions.build] | ||
| command = "cargo build --target=wasm32-wasip1 --release" | ||
| path = "target/wasm32-wasip1/release/{{handle | replace: " ", "-" | downcase}}.wasm" | ||
| path = "target/wasm32-wasip1/release/discount-function-rust.wasm/{{handle | replace: " ", "-" | downcase}}.wasm" |
| watch = [ "src/**/*.rs" ] | ||
|
|
||
| [extensions.ui] | ||
| handle = "{{handle}}" |
There was a problem hiding this comment.
Do we want this in default? I don't think so?
There was a problem hiding this comment.
Updated to use the handle from the extension generate command.
| add_discount_code_validations: Option<ValidDiscountCodes>, | ||
| // Ignore other operation types that might be in the response but we don't use in cart context | ||
| #[serde(flatten)] | ||
| _other: std::collections::HashMap<String, serde_json::Value>, |
jonathanhamel4
left a comment
There was a problem hiding this comment.
Lgtm. Left some notes cause I think some of the changes are wrong (some I had to manually change after the script). I also made the change to 2025-04 thinking that this is what we wanted, as we generally don't ask devs to use unstable, but I guess that is our only option until this api is released.
We should update to 2025-04 as soon as we're ready to release, but I wanted the template to still work for our internal testing. 🙇♂️ |
Updating rust functions to match mock-http-server.