this post was submitted on 25 Feb 2024
336 points (97.7% liked)

linuxmemes

20717 readers
2906 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Darkrai@kbin.social 12 points 6 months ago (2 children)

I was able to use this guys docker image and tool in order to cross compile my Rust programs in the past. They were very simple programs so I dont know how well it works for larger projects.

https://github.com/Jake-Shadle/xwin

[โ€“] 0x4E4F@lemmy.dbzer0.com 3 points 6 months ago

You could even cross-compile from musl... very cool ๐Ÿ‘!

[โ€“] Shareni@programming.dev 3 points 6 months ago

I heard recently that you can use the zig compiler to cross compile rust programs.