chipsenkbeil/distant

Modernize release output

chipsenkbeil opened this issue · 2 comments

Follow https://github.com/johnthagen/min-sized-rust

  • Use a release profile to strip vs manually running strip
  • Stick with z for opt-level (smallest size?) (doc)
  • Abort on panic? (doc)
  • Support nightly build option that also builds std lib? (doc)
  • Try out windows-specific size optimizations? (doc)
  • Compress binary with upx? (doc)

Rather than statically pulling in glibc, which can cause a bunch of issues (maybe), we should also consider updating the release builds to use the oldest version of Linux possible to reduce the glibc version issue.

I think to achieve that, we'll need to use Docker as the versions of Linux supported are still too new.

See this bump in Rust requirements for glibc and Linux kernel: https://blog.rust-lang.org/2022/08/01/Increasing-glibc-kernel-requirements.html