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