Y
Hacker News
new
|
ask
|
show
|
jobs
by
airstrike
455 days ago
Obligatory comment saying you can do the same in Rust
4 comments
eptcyka
455 days ago
I can’t target msvc or aarch-64-apple-* and compile a binary on Linux, without resorting to significant amounts of rectal dentistry.
link
jeroenhd
455 days ago
I've built .exes for Windows just fine on Linux. I don't know about Apple stuff, though, I don't think there's any built-in Linux tooling to submit an executable for Apple's signature scheme.
link
iknowstuff
455 days ago
Can’t you just replace the “cargo” command with “cross”
cross build —-target=…
https://github.com/cross-rs/cross
link
demurgos
455 days ago
Cross-building for Apple is possible, but it's far from smooth with many steps that you have to figure out by yourself unfortunately.
link
cooljacob204
455 days ago
I use this which seems to work well for my projects. Particularly their docker image.
https://github.com/rust-cross/cargo-zigbuild
link
delusional
455 days ago
You can in fact also do it in C
link
IshKebab
455 days ago
It's not quite as seamless as in Go to be fair. But it does mean you can write Rust instead of Go.
link
p_ing
455 days ago
And .NET
link