4 ms·
> you know that you're getting the same Rust code every time Since code is generated, that could be considered the same as saying "you know you're getting the
by bheadmaster 4y ago
> you know that you're getting the same Rust code every time
Since code is generated, that could be considered the same as saying "you know you're getting the same binary every time" for pre-compiled binaries. The key argument is whether "generated code" can be considered "source code" or not.
Personally, I'd say no - "source code" almost always refers to the preferred representation that humans are editing. If code is generated, then the true source code is the code of the generator and its input. A similar distinction is declared in the GNU General Public License, to prevent companies from circumventing the spirit of the license by releasing obfuscated source code.
Rule of thumb: If the original author is not editing it directly, it's not source code.
- Liquid_Fire 4y agoWhether this distinction matters entirely depends on what your end goal is for which you want reproducible builds. Besides, it's not a problem that Cargo alone can solve. At the end of the day it's picking up code from a git repo, and how you produced the code in that repo is not something it could control.