From 41035dccd5c0c8ae97581a1d2b4ee1e01caeb328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20M=C3=B8rk=20Hegnh=C3=B8j?= Date: Sun, 10 Nov 2024 15:26:37 +0100 Subject: [PATCH] Update rust templates to 3.1.0. Fix the Makefile to update templates for rust MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mikkel Mørk Hegnhøj --- templates/Makefile | 4 ++-- templates/http-rust/content/Cargo.toml.tmpl | 2 +- templates/redis-rust/content/Cargo.toml.tmpl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/Makefile b/templates/Makefile index efe30b3886..68f23591b4 100644 --- a/templates/Makefile +++ b/templates/Makefile @@ -17,7 +17,7 @@ bump-go-versions: bump-rust-versions: for dir in $$(ls -d *-rust) ; do \ cd $$dir/content ; \ - sed -r -i.sed-bak -e 's%(spin-sdk = )(("[0-9]+.[0-9]+.[0-9]+(-rc.[0-9]+)?")|(\{ git = "https://github.com/fermyon/spin", branch = "main" \}))%spin-sdk = "${CRATES_IO_VERSION}"%g' Cargo.toml ; \ + sed -r -i.sed-bak -e 's%(spin-sdk = )(("[0-9]+.[0-9]+.[0-9]+(-rc.[0-9]+)?")|(\{ git = "https://github.com/fermyon/spin", branch = "main" \}))%spin-sdk = "${CRATES_IO_VERSION}"%g' Cargo.toml.tmpl ; \ rm *.sed-bak ; \ cd - 2>&1 >/dev/null ; \ - done \ No newline at end of file + done diff --git a/templates/http-rust/content/Cargo.toml.tmpl b/templates/http-rust/content/Cargo.toml.tmpl index 33e63b5455..d55a3190e2 100644 --- a/templates/http-rust/content/Cargo.toml.tmpl +++ b/templates/http-rust/content/Cargo.toml.tmpl @@ -10,6 +10,6 @@ crate-type = ["cdylib"] [dependencies] anyhow = "1" -spin-sdk = "3.0.1" +spin-sdk = "3.1.0" [workspace] diff --git a/templates/redis-rust/content/Cargo.toml.tmpl b/templates/redis-rust/content/Cargo.toml.tmpl index cca0ef197c..d25db80bf6 100644 --- a/templates/redis-rust/content/Cargo.toml.tmpl +++ b/templates/redis-rust/content/Cargo.toml.tmpl @@ -14,6 +14,6 @@ anyhow = "1" # Crate to simplify working with bytes. bytes = "1" # The Spin SDK. -spin-sdk = "3.0.1" +spin-sdk = "3.1.0" [workspace]