Skip to content

Commit 8da40eb

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
Update crates
1 parent 28c626b commit 8da40eb

File tree

20 files changed

+1501
-790
lines changed

20 files changed

+1501
-790
lines changed

build.ps1

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ param(
1414
[switch]$SkipLinkCheck,
1515
[switch]$UseX64MakeAppx,
1616
[switch]$UseCratesIO,
17-
[switch]$UpdateLockFile
17+
[switch]$UpdateLockFile,
18+
[switch]$Audit
1819
)
1920

2021
if ($GetPackageVersion) {
@@ -252,6 +253,14 @@ if (!$SkipBuild) {
252253
cargo generate-lockfile
253254
}
254255
else {
256+
if ($Audit) {
257+
if ($null -eq (Get-Command cargo-audit -ErrorAction Ignore)) {
258+
cargo install cargo-audit --features=fix
259+
}
260+
261+
cargo audit fix
262+
}
263+
255264
./build.ps1
256265
}
257266
}
@@ -276,6 +285,14 @@ if (!$SkipBuild) {
276285
cargo generate-lockfile
277286
}
278287
else {
288+
if ($Audit) {
289+
if ($null -eq (Get-Command cargo-audit -ErrorAction Ignore)) {
290+
cargo install cargo-audit --features=fix
291+
}
292+
293+
cargo audit fix
294+
}
295+
279296
cargo build @flags
280297
}
281298
}

0 commit comments

Comments
 (0)