From f9271b86f275500fb741f4811dfd18a9c4f791b2 Mon Sep 17 00:00:00 2001 From: David Cameron Date: Tue, 28 Jan 2025 16:10:01 -0500 Subject: [PATCH] Update cart transform --- checkout/rust/cart-transform/bundles/Cargo.toml.liquid | 3 +-- .../rust/cart-transform/bundles/shopify.extension.toml.liquid | 2 +- checkout/rust/cart-transform/default/Cargo.toml.liquid | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/checkout/rust/cart-transform/bundles/Cargo.toml.liquid b/checkout/rust/cart-transform/bundles/Cargo.toml.liquid index 52929234..4d4850fe 100644 --- a/checkout/rust/cart-transform/bundles/Cargo.toml.liquid +++ b/checkout/rust/cart-transform/bundles/Cargo.toml.liquid @@ -1,11 +1,10 @@ [package] -name = "bundles_cart_transform" +name = "{{handle | replace: " ", "-" | downcase}}" version = "1.0.0" edition = "2021" [dependencies] serde = { version = "1.0.13", features = ["derive"] } -serde_with = "1.13.0" serde_json = "1.0" shopify_function = "0.8.1" graphql_client = "0.14.0" diff --git a/checkout/rust/cart-transform/bundles/shopify.extension.toml.liquid b/checkout/rust/cart-transform/bundles/shopify.extension.toml.liquid index c9aa8488..64d2d84a 100644 --- a/checkout/rust/cart-transform/bundles/shopify.extension.toml.liquid +++ b/checkout/rust/cart-transform/bundles/shopify.extension.toml.liquid @@ -2,7 +2,7 @@ api_version = "2025-01" [[extensions]] name = "t:name" -handle = "bundles-cart-transform" +handle = "{{handle}}" type = "function" {% if uid %}uid = "{{ uid }}"{% endif %} description = "t:description" diff --git a/checkout/rust/cart-transform/default/Cargo.toml.liquid b/checkout/rust/cart-transform/default/Cargo.toml.liquid index 6c267317..4d4850fe 100644 --- a/checkout/rust/cart-transform/default/Cargo.toml.liquid +++ b/checkout/rust/cart-transform/default/Cargo.toml.liquid @@ -5,7 +5,6 @@ edition = "2021" [dependencies] serde = { version = "1.0.13", features = ["derive"] } -serde_with = "1.13.0" serde_json = "1.0" shopify_function = "0.8.1" graphql_client = "0.14.0"