Cross-compile a rust app for FreeBSD

2020-10-09

I was trying to suss out what the rustc target is for FreeBSD. There's not a lot of info on the topic, so here's my guide for cross-compiling a rust program such that it targets freebsd. It's... a two liner.

rustup target add x86_64-unknown-freebsd
cargo build --release --target x86_64-unknown-freebsd