Binary crates on crates.io are still compiled from source, so they require users to have Rust installed.
The packaging for consumption is somewhat shaky in Rust:
- For Debian, I use
dpkg -i *.deb installs.
- For macOS:
- a bare binary is OK for command-line executables. If you use C libraries, make sure to compile them statically.
otool -L exe to check if it’ll work on not-your-machine.
- if the project is over a month old, someone may be nice enough to package it for Homebrew.
- For Windows, a static exe is OK-ish too, but for the first month or so it’ll get blocked as a potential virus, unless you digitally sign it, but that takes like 7 wasted weekends to get working, and then it’ll still be marked a potential virus for the first month.