diff --git a/.cargo/release-windows-ms.toml b/.cargo/release-windows-ms.toml index 62d525d513e..2571f2f1c5d 100644 --- a/.cargo/release-windows-ms.toml +++ b/.cargo/release-windows-ms.toml @@ -33,6 +33,9 @@ rustflags = [ # The backtrace code for panics in Rust is almost as large as the entire editor. # = Huge reduction in binary size by removing all that. +[profile.release] +panic = "immediate-abort" + [unstable] -build-std-features = ["panic_immediate_abort"] +panic-immediate-abort = true build-std = ["std", "panic_abort"] diff --git a/.pipelines/release.yml b/.pipelines/release.yml index f69c27031c3..6654032bbb7 100644 --- a/.pipelines/release.yml +++ b/.pipelines/release.yml @@ -112,7 +112,7 @@ extends: - task: RustInstaller@1 displayName: Install Rust toolchain inputs: - rustVersion: ms-stable + rustVersion: ms-prod additionalTargets: x86_64-pc-windows-msvc aarch64-pc-windows-msvc # URL of an Azure Artifacts feed configured with a crates.io upstream. Must be within the current ADO collection. # NOTE: Azure Artifacts support for Rust is not yet public, but it is enabled for internal ADO organizations. @@ -151,7 +151,7 @@ extends: # Extract the version for `ob_createvpack_version`. - script: |- @echo off - for /f "tokens=3 delims=- " %%x in ('findstr /c:"version = " Cargo.toml') do ( + for /f "tokens=3 delims=- " %%x in ('findstr /c:"version = " crates\edit\Cargo.toml') do ( echo ##vso[task.setvariable variable=EditVersion]%%~x goto :EOF )