Shrinking a Rust binary output from 18mb to 7mb

Simple tweaks to the options in the release profile can dramatically reduce the footprint of the resulting binary After spotting an 18mb binary lurking in the node_modules folder of a project I'd released with napi-rs , I was curious about how much I could reduce it. I was convinced of two things: First, that I'd only be able to trim a megabyte here or there with a combo of various release…