-
Notifications
You must be signed in to change notification settings - Fork 853
Remove cfg-if dependency. #5110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It was only used once.
This reduces the number of dependencies of a
|
If PyO3 ever bumps its MSRV to 1.70, Similarly, if PyO3 ever bumps its MSRV to 1.77, At which point the base pyo3 build will only have 4 dependencies. :) |
Thanks, yep always keen to minimize dependencies here! I had been meaning to drop that |
Fwiw, if you want to go even further, you could maybe also consider getting rid of Probably not worth it though. :) |
Agreed, I had considered similar but it seems fine to keep it and let |
Of course, if |
The size and intptr types, sure, that seems likely to happen. Not sure about wchar_t.. maybe. FILE, however, seems unlikely. |
Perhaps if the integer types were in |
This removes the
cfg-if
dependency.It was only used in one place with a single if-else, which can easily be replaced.
Before:
After: