Deterministic compilation / reproducible builds #1549
-
I need to make sure generated binaries (cross compiled) are reproducible. I'm a bit lost on how to achieve this with cross. How can I set a specific version of the toolchain? Is that enough? |
Beta Was this translation helpful? Give feedback.
Answered by
Emilgardis
Aug 27, 2024
Replies: 1 comment 3 replies
-
just use it like cargo ( https://github.com/cross-rs/cross/blob/main/docs/config_file.md#targettargetimage ofc you should use |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
GCdePaula
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just use it like cargo (
cross +toolchain
), but use a set image for cross to use so that it doesn't change with updates unexpectedlyhttps://github.com/cross-rs/cross/blob/main/docs/config_file.md#targettargetimage
ofc you should use
--remap-path-prefix
in cargo and other flags to make the output reproducible if necessary