We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94ff81f commit 2ff4845Copy full SHA for 2ff4845
libbz2-rs-sys-cdylib/Cargo.toml
@@ -39,8 +39,14 @@ name = "libbz2_rs"
39
filename = "libbz2_rs"
40
41
# no_std requires panic=abort
42
+# Also use lto to optimize away references to rust_eh_personality on targets
43
+# that are not no_std. On no_std targets rust_eh_personality is not referenced
44
+# in the first place.
45
[profile.dev]
46
panic = "abort"
47
+lto = "thin"
48
+opt-level = 1
49
50
[profile.release]
51
52
0 commit comments