Skip to content

Conversation

@nrdxp
Copy link
Contributor

@nrdxp nrdxp commented Aug 4, 2021

There are few more things we could do to get it a bit lower. We could consider removing the ability to trace in a release build, and just abort, thus removing the need for the stack unwinding code. Also, stripping the binary helped remove about half a MB, but I don't think cargo has a way to do this automatically (that I could find).

@06kellyjac
Copy link
Contributor

Also, stripping the binary helped remove about half a MB, but I don't think cargo has a way to do this automatically (that I could find).

There's an unstable feature for it: https://doc.rust-lang.org/cargo/reference/unstable.html#profile-strip-option

It just merged into rustc so should make it to 1.58 rust-lang/rust#72110 (comment)

pr to stabilize in cargo: rust-lang/cargo#10088

@notgne2 notgne2 merged commit f2a3044 into serokell:master Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants