diff --git a/Cargo.lock b/Cargo.lock index 36655aa41..d5d3c61be 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,6 +23,7 @@ dependencies = [ "iced", "image", "inventory", + "lzma-sys", "open", "printpdf", "rayon", diff --git a/Cargo.toml b/Cargo.toml index 076c79c76..ba1e032aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,13 @@ edition = "2021" build = "build.rs" [dependencies] +# vtkio (pulled in transitively via truck-meshalgo) depends on xz2 → lzma-sys, +# which by default links the system liblzma dynamically. On macOS that bakes a +# Homebrew dylib path (/opt/homebrew/.../liblzma.5.dylib) into the binary, so +# the .app crashes on launch on machines without that exact library (#56). +# Forcing the `static` feature builds liblzma from the bundled source, making +# the binary self-contained on every platform. +lzma-sys = { version = "0.1", features = ["static"] } iced = { version = "0.14", features = ["debug", "image", "svg", "advanced", "canvas", "smol"] } bytemuck = { version = "1.25", features = ["derive"] } glam = { version = "0.33", features = ["bytemuck"] }