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.
profile.release
1 parent 2ac3169 commit 4c74586Copy full SHA for 4c74586
Cargo.toml
@@ -58,3 +58,13 @@ hbb_common = { path = "libs/hbb_common" }
58
[workspace]
59
members = ["libs/hbb_common"]
60
exclude = ["ui"]
61
+
62
+#https://github.com/johnthagen/min-sized-rust
63
+#https://doc.rust-lang.org/cargo/reference/profiles.html#default-profiles
64
+[profile.release]
65
+lto = true
66
+codegen-units = 1
67
+panic = 'abort'
68
+strip = true
69
+#opt-level = 'z' # only have smaller size after strip # Default is 3, better performance
70
+#rpath = true # Not needed
0 commit comments