Hacker GitHub

← All repos

cross-rs/cross

View on GitHub ↗ ★ 8,348 Rust

“Zero setup” cross compilation and “cross testing” of Rust crates

14 mentions on Hacker News by 14 people: 0 stories, 14 comments · first 2019-08-02 · latest 2026-03-18

Mentions per year 14 mentions · busiest year 2019 (5)
20082026
  1. I'm just using cross https://github.com/cross-rs/cross to build cross-arch. you can still use `cargo build`, it will just work.
  2. …and compilation. The resulting executable ran successfully at the first try. I was amazed. [1] https://github.com/cross-rs/cross
    comment by ricudis · 2025-03-18 · in Rust on the RP2350 (2024)
  3. Can’t you just replace the “cargo” command with “cross” cross build —-target=… https://github.com/cross-rs/cross
    comment by iknowstuff · 2025-03-16 · in That Time I Recreated Photoshop in C++
  4. …claim to have native support [4] for various *BSD. [1] https://github.com/fujiapple852/trippy [2] https://github.com/cross-rs/cross [3] https://github.com/anarazel/pg-vm-images [4] https://cirrus-ci.org/guide/FreeBSD/
  5. What is currently missing from https://github.com/cross-rs/cross ?
  6. …easy if what you try to compile don't have C dependencies. For C dependencies, there is cross < https://github.com/cross-rs/cross > which I had good experiences with.
    comment by isomel · 2022-03-02 · in Single binary executable packages
  7. …we can do way better than that, because Zig showed us how. See this Dockerfile for what I mean: https://github.com/rust-embedded/cross/blob/master/docker/Do...
  8. …love, just works If you have problems using musl with some libs, give it a go, you gonna love it ;P https://github.com/rust-embedded/cross Edit: my dumbass english failed me, sorry.
    comment by Xunjin · 2021-05-08 · in A New AWS SDK for Rust
  9. You should give rust-embedded's `cross` project a look. https://github.com/rust-embedded/cross/ I can't find any iOS related directories in their list of targets but there are a couple issues related to supporting apple platforms.
    comment by vertak · 2020-04-29 · in How we use Rust in our mobile SDK
  10. Yes: https://github.com/rust-embedded/cross
    comment by orf · 2019-12-19 · in Rust 1.40
  11. …I wrote this I discovered that cross[1] supports FreeBSD so it's probably the better option. [1]: https://github.com/rust-embedded/cross
  12. Yep! Thank you so much! I really need to update the documentation, but I think `cross` ( https://github.com/rust-embedded/cross ), a drop-in cargo replacement, is the probably the best available solution for building musl-based binaries.
    comment by thramp · 2019-09-24 · in Serverless: slower and more expensive
  13. Yes: - https://github.com/japaric/rust-cross (more involved) - https://github.com/rust-embedded/cross (straightforward) (Edited for formatting)
    comment by jen20 · 2019-08-15 · in Rust 1.37.0
  14. Not OP, but further info can be found in the GitHub repo of the build tool: https://github.com/rust-embedded/cross https://github.com/rust-embedded/wg#the-tools-team
    comment by lioeters · 2019-08-02 · in Contributing to the Mozilla code base