From 75f6bef25ec514aa56c9734a8413151b5c0222cf Mon Sep 17 00:00:00 2001 From: Tom Brow Date: Mon, 12 Oct 2026 11:36:34 -0700 Subject: [PATCH] fix(build): preserve proc-macro alignment on macOS 27 Signed-off-by: Tom Brow --- Cargo.toml | 6 ++++++ desktop/src-tauri/Cargo.toml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d27c63d234..7902411f7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -195,3 +195,9 @@ aws-creds = { git = "https://github.com/tlongwell-block/rust-s3", rev = "c9fce36 # resolves even though Buzz only enables PostgreSQL. Pin the merged upstream # compatibility fix until it is released: https://github.com/transact-rs/sqlx/pull/4402 sqlx-sqlite = { git = "https://github.com/launchbadge/sqlx", rev = "94aafe3a68884d923b0798a767c8d7f6cfda89d2" } + +# Rust 1.95's Mach-O stripper can misalign proc-macro dylibs on macOS 27. +# Keep build-time artifacts unstripped; shipped binaries retain their settings. +# Remove after upgrading Rust past the fix in 1.98 (block/buzz#8074). +[profile.release.build-override] +strip = "none" diff --git a/desktop/src-tauri/Cargo.toml b/desktop/src-tauri/Cargo.toml index b7b31117f7..763776abd8 100644 --- a/desktop/src-tauri/Cargo.toml +++ b/desktop/src-tauri/Cargo.toml @@ -164,3 +164,9 @@ tokio = { version = "1", features = ["test-util"] } # The relay's media validation, so desktop-produced snapshots and voice notes # can prove their full client-sanitize → relay-accept contract end to end. buzz_media_pkg = { package = "buzz-media", path = "../../crates/buzz-media" } + +# Rust 1.95's Mach-O stripper can misalign proc-macro dylibs on macOS 27. +# Keep build-time artifacts unstripped; shipped binaries retain their settings. +# Remove after upgrading Rust past the fix in 1.98 (block/buzz#8074). +[profile.release.build-override] +strip = "none"