Skip to content

Commit 3d21a65

Browse files
committed
fix: use strip=debuginfo to preserve uniffi metadata
strip=true removes the uniffi metadata sections from the library, which prevents uniffi-bindgen from generating bindings on Linux. Using strip=debuginfo preserves these sections while still removing debug symbols to keep binary size small.
1 parent e96f366 commit 3d21a65

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ uniffi = { version = "0.28", features = ["bindgen-tests"] }
3737

3838
[profile.release]
3939
lto = false
40-
strip = true
40+
# Note: strip = true removes uniffi metadata sections needed for bindgen
41+
# Use "debuginfo" to strip debug info but preserve uniffi metadata
42+
strip = "debuginfo"
4143
opt-level = "s"
4244
panic = "abort"

0 commit comments

Comments
 (0)