Skip to content

Conversation

rivy
Copy link
Member

@rivy rivy commented Dec 8, 2019

Allows older windows versions to build, using feature="windows_legacy".

  • use CreateFileW instead of CreateFile2
  • disable hostname build (current implementation isn't compatible with older Windows version)

@lygstate
Copy link

I would suggest use CreateFile2 when possible then use CreateFileW

@rivy
Copy link
Member Author

rivy commented Dec 26, 2019

@lygstate , thanks for the input.

Could you explain your reasoning? I don't see an upside to that approach.

@rivy rivy mentioned this pull request Dec 30, 2019
@rivy rivy merged commit 683db28 into uutils:master Apr 7, 2020
@rivy rivy deleted the fix.win-legacy branch April 8, 2020 01:43
@rivy rivy mentioned this pull request Apr 8, 2020
@lygstate
Copy link

lygstate commented Apr 8, 2020

@rivy
Copy link
Member Author

rivy commented Apr 9, 2020

@lygstate , thanks for the information and the reference link. To my knowledge, there is currently no UWP target (and no plan for one) for rust. So, I think the choice here is the correct one at the moment.

If UWP becomes an issue at a later date, choosing CreateFile vs CreateFile2 could be done with conditional code based on either features and/or compiler target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants