My friend actually has the source code, so yes, he could do all of this. :)
Also, worth note that these "twelve steps" are:
- inclusive of literally everything including installing Rust and adding dependencies; this is like including "install Python" and "pip install" for a Python tutorial. The point was to be approachable for anyone. I think it succeeded.
- inclusive of the "copy the executable to hand to a friend" step in both cases, which is intentionally over the top in the true listicle style
- inclusive of a bunch of steps you only ever have to do once to get full MSVC-compatible cross compilation happening for Windows.
It's almost like I was intentionally using this tiny project (which isn't especially interesting in its own right; as many have noted it's a one-liner batch file) to provide a one-stop shop for the basics of getting a cross-compiled setup with Rust. ;)
> It's almost like I was intentionally using this tiny project (which isn't especially interesting in its own right; as many have noted it's a one-liner batch file) to provide a one-stop shop for the basics of getting a cross-compiled setup with Rust. ;)
That was my initial thought reading this. Even the most devout Rust enthusiast wouldn't go to this much trouble to avoid executing 'find' one would hope (yes, find does everything you need here for those wondering)
Windows, remember? The OP is building a program on his Mac and sending it to his Windows-using friend. Windows has a "find" command, but it's a full-text search thing, unlike on *nix where it does find-by-name.
Also, worth note that these "twelve steps" are:
- inclusive of literally everything including installing Rust and adding dependencies; this is like including "install Python" and "pip install" for a Python tutorial. The point was to be approachable for anyone. I think it succeeded.
- inclusive of the "copy the executable to hand to a friend" step in both cases, which is intentionally over the top in the true listicle style
- inclusive of a bunch of steps you only ever have to do once to get full MSVC-compatible cross compilation happening for Windows.
It's almost like I was intentionally using this tiny project (which isn't especially interesting in its own right; as many have noted it's a one-liner batch file) to provide a one-stop shop for the basics of getting a cross-compiled setup with Rust. ;)