From cceb2048b9bad555b064641e08c4edab96e59853 Mon Sep 17 00:00:00 2001 From: Valerie Wolfe Date: Mon, 8 Jul 2024 10:26:22 -0400 Subject: [PATCH] env-share: fixed a couple minor issues and added release profile --- env-share/Cargo.toml | 10 +++++++--- env-share/scripts/env-share.ps1 | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/env-share/Cargo.toml b/env-share/Cargo.toml index 91f0407..770a857 100644 --- a/env-share/Cargo.toml +++ b/env-share/Cargo.toml @@ -3,6 +3,10 @@ name = "env-share" version = "0.0.1" edition = "2021" -[dependencies] -pico-args = "0.5.0" - +[profile.release] +opt-level = 's' +codegen-units = 1 +debug = false +lto = true +panic = "abort" +strip = "symbols" diff --git a/env-share/scripts/env-share.ps1 b/env-share/scripts/env-share.ps1 index 87fdf9c..762de92 100644 --- a/env-share/scripts/env-share.ps1 +++ b/env-share/scripts/env-share.ps1 @@ -1,7 +1,7 @@ # make sure the file exists $file = $env:ENV_SHARE_FILE -if -not (Test-Path $file) { +if(-not (Test-Path $file)) { exit }