-
Notifications
You must be signed in to change notification settings - Fork 5
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
Regenerate bindings and update core-foundation-sys #7
Conversation
This looks good to me! It's a bit hard to see the actual changes given that the formatting changed a lot, but it seems like everything is correct. The fact that bindgen did add Did you run the tests? Because bindgen also autogenerates these layout tests, e.g. checking that both |
Thank you for your PR. Also looks mostly good to me. But we'd have to increase the major version number because of the minimum rust version required. Why was it necessary to add the absolute paths to the generation command? The frameworks should be the same as the ones installed in the system (If you're using Mojave). Also within the framework there's usually a symlink to /version/A/. So you could leave that out. If you want a specific SDK version, you could point to the specific SDK in XCode. The |
Thank you so much for the thoughtful reviews! Good point about the And I did run the tests, so we should be good to go there. I also revised the commit that updated the As far as the changed path for the generation command in the When I was looking around for what to feed to
I just went with the one in Thanks again! |
Thank you again for your changes. I just double checked on Mojave and it really appears that Apple deemed the headers are not necessary for regular users, so we really need the full XCode path. |
Hey @jonas-k - I was just looking over some of the changes in the regenerated bindings again this morning, and I have some concerns about implementing I'll be looking more into this today, but if it's the case that we should leave them out, it seems like the fix would be really straightforward, so there may be another pull request coming from me shortly. |
@jasongrlicky I think you're right, copying a
We cannot prevent the type from being movable, but the best we can do is to prevent it from being copyable. @jonas-k You should definitely wait for this to be resolved before you upload version 3.0.0 to crates.io! |
Hi there! This PR:
Clone
derives for structscore-foundation-sys
to 0.7 to take advantage of improvements since 2015Something worth noting is that the new bindgen adds
packed(4)
toMIDIPacket
, which will bump the minimum rust version to 1.33 at least. It seems like it would fix #6, though!One thing that confused me is that bindgen did not add
packed(4)
toMidiPacketList
, despite it being in the#pragma
inMIDIServices.h
. I am not sure why this is, and am honestly not familiar enough with the intricacies of type layout to trust that it's doing the right thing. I followed @Boddlnagg 's message in the existing bindings and added it manually, but I would appreciate another set of eyes to make sure that it's right. In fact, another set of eyes on the whole set of changes to the bindings would be really handy.At least because of the
core-foundation-sys
version bump, I believe this would be a breaking change.Thanks so much! 🙏