From 793b002344bae9ebaeaa86d3cba03e4b0121f858 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 30 Jan 2020 05:47:00 -0600 Subject: [PATCH] chore(deps) Update Rust crate handlebars to v3 (#360) * chore(deps) Update Rust crate handlebars to v3 * fix handlebars 'static lifetime. * fix static lifetime for mac and linux. Co-authored-by: WhiteSource Renovate Co-authored-by: Tensor-Programming --- cli/tauri-cli/Cargo.toml | 2 +- cli/tauri-cli/src/bundle/appimage_bundle.rs | 2 +- cli/tauri-cli/src/bundle/dmg_bundle.rs | 2 +- cli/tauri-cli/src/bundle/wix.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/tauri-cli/Cargo.toml b/cli/tauri-cli/Cargo.toml index f5442afde..98d695c94 100644 --- a/cli/tauri-cli/Cargo.toml +++ b/cli/tauri-cli/Cargo.toml @@ -40,7 +40,7 @@ attohttpc = { version = "0.11.1" } regex = { version = "1" } [target.'cfg(not(target_os = "linux"))'.dependencies] -handlebars = { version = "2.0" } +handlebars = { version = "3.0" } lazy_static = { version = "1.4" } zip = { version = "0.5" } sha2 = { version = "0.8" } diff --git a/cli/tauri-cli/src/bundle/appimage_bundle.rs b/cli/tauri-cli/src/bundle/appimage_bundle.rs index 0f06c22af..e08a6a7bc 100644 --- a/cli/tauri-cli/src/bundle/appimage_bundle.rs +++ b/cli/tauri-cli/src/bundle/appimage_bundle.rs @@ -14,7 +14,7 @@ use std::process::{Command, Stdio}; // Create handlebars template for shell script lazy_static! { - static ref HANDLEBARS: Handlebars = { + static ref HANDLEBARS: Handlebars<'static> = { let mut handlebars = Handlebars::new(); handlebars diff --git a/cli/tauri-cli/src/bundle/dmg_bundle.rs b/cli/tauri-cli/src/bundle/dmg_bundle.rs index 886d48c13..09535ff56 100644 --- a/cli/tauri-cli/src/bundle/dmg_bundle.rs +++ b/cli/tauri-cli/src/bundle/dmg_bundle.rs @@ -13,7 +13,7 @@ use std::process::{Command, Stdio}; // Create handlebars template for shell scripts lazy_static! { - static ref HANDLEBARS: Handlebars = { + static ref HANDLEBARS: Handlebars<'static> = { let mut handlebars = Handlebars::new(); handlebars diff --git a/cli/tauri-cli/src/bundle/wix.rs b/cli/tauri-cli/src/bundle/wix.rs index 789da471f..42ec881bf 100644 --- a/cli/tauri-cli/src/bundle/wix.rs +++ b/cli/tauri-cli/src/bundle/wix.rs @@ -42,7 +42,7 @@ const UUID_NAMESPACE: [u8; 16] = [ // setup for the main.wxs template file using handlebars. Dynamically changes the template on compilation based on the application metadata. lazy_static! { - static ref HANDLEBARS: Handlebars = { + static ref HANDLEBARS: Handlebars<'static> = { let mut handlebars = Handlebars::new(); handlebars