-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Revise network definitions for HorizonOS #3863
Conversation
r? @JohnTitor rustbot has assigned @JohnTitor. Use |
Thanks for the fix! Looks like this is defined here https://libctru.devkitpro.org/in_8h_source.html. Can you verify that tests pass with
You are welcome to stable nominate anything (the label works via rustbot). I don't mind backporting as long as it's not overly conflicty. |
Also, do you have a link to the relevant headers where @rustbot author |
|
The test (rightfully) panics at this line because our target has no specified tests. I will add that our target isn't a host target (it's basically an embedded device) and that cross-compiling and running tests is a problem we've had for quite a long time due to the very weird setup with the required toolchain libraries. Is it necessary to implement these tests? I might be able to cook up something that checks out the headers (assuming the host has all the libraries installed), but it would serve little purpose as the toolchain used is (and will always be) fundamentally experimental. |
Thanks for the change, looks good now! Could you please squash? Regarding the tests, no need to do anything here. At some point in the future you are welcome to add a similar function, but it doesn't need to happen now. |
(backport <rust-lang#3863>) (cherry picked from commit 82ebf14)
@ian-h-chamberlain @FenrirWolf @adryzz
Following some discussion in rust3ds/ctru-rs#174.
The changes include:
Update to the
hostent
definition for HorizonOS (armv6k-nintendo-3ds
) following upstream changes.A step back on the decision to remove the trailing zero bytes from
sockaddr_in
that was made all the way back in Horizon OS Nintendo 3DS - Fixed size of sockaddr_in #2725. This change will require a little work instd
, but we came to understand it's only right to keep the definitions true to the upstream versions.Also, should this PR be flagged for release in 0.2.x as well as the 1.0 milestone? Work on tier-3 targets isn't clearly talked about in the new contribution guidelines (not that this PR is of any relevance to the release process).