Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Change `std::fs::copy` to use `copyfile` on MacOS and iOS #58901
The API is available from MacOS 10.7 and iOS 4.3 (and possibly earlier but I haven't checked).
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.
Officially, no, we only support 10.7+.
Anecdotally though we support 10.6 with some build tweaks to libstd which have historically been used a bit. I think though that users of the 10.6 support have all moved beyond 10.6 themselves, so landing this should be fine in that regard.