Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
airstrike
on March 16, 2025
|
parent
|
context
|
favorite
| on:
That Time I Recreated Photoshop in C++
Obligatory comment saying you can do the same in Rust
eptcyka
on March 16, 2025
|
next
[–]
I can’t target msvc or aarch-64-apple-* and compile a binary on Linux, without resorting to significant amounts of rectal dentistry.
jeroenhd
on March 16, 2025
|
parent
|
next
[–]
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.
iknowstuff
on March 16, 2025
|
parent
|
prev
|
next
[–]
Can’t you just replace the “cargo” command with “cross”
cross build —-target=…
https://github.com/cross-rs/cross
demurgos
on March 17, 2025
|
root
|
parent
|
next
[–]
Cross-building for Apple is possible, but it's far from smooth with many steps that you have to figure out by yourself unfortunately.
cooljacob204
on March 17, 2025
|
root
|
parent
|
next
[–]
I use this which seems to work well for my projects. Particularly their docker image.
https://github.com/rust-cross/cargo-zigbuild
delusional
on March 16, 2025
|
prev
|
next
[–]
You can in fact also do it in C
IshKebab
on March 16, 2025
|
prev
|
next
[–]
It's not quite as seamless as in Go to be fair. But it does mean you can write Rust instead of Go.
p_ing
on March 16, 2025
|
prev
[–]
And .NET
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: