-
Notifications
You must be signed in to change notification settings - Fork 11
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
Let's collaborate on objc2
!
#9
Comments
Hi, thank you for contacting! I didn't know there are similar trial for these work. Although I thought I need a few modules from this crate when I started to work on, I actually don't have my own use case of this crate now. For last 2 days, I actually also created prebuilt version of this crate. https://github.com/youknowone/apple-sys-prebuilt Here is the sys part patch: #10 I am very amateur at this field. Please tell me if I have anything to help. |
Cool! I think that's a much better user-experience
Yeah, I suspect I will hit that issue at some point too :/ You could probably contact the crates.io team and ask them for help (since it will be difficult, if not impossible, to factor the frameworks out into their own crates).
I'm honestly not quite sure atm., I mostly just wanted to inform you I think it would be nice to have some more eyes on |
I wonder if one approach that might work for combining these two approaches would be if we could use a kind of multi-phased strategy for generating Something like this:
This would have the advantage of giving us coverage in It would also be an easier to maintain and safer approach than manually including those little fixes, since if the headers change, the output from |
I would honestly be all aboard if not for the fact that I think the correct way to go is rather to not reimplement the stuff that Swift has already done, which is, well, C++, which is not Rust and shiny and a language I know, but probably the only real solution looking forwards :/ Good points all around though. |
Greetings @youknowone
I fairly recently completed an initial version of
icrate
over at theobjc2
project, and wanted to tell you about it, as you seem to be doing a lot of the same in this project.The desire with
icrate
is basically to be your one-stop-shop for all of Apple's frameworks, but importantly, with correct memory management and type-safety.A few differences between
apple-sys
:clang
in their build script, and so that we can support docs.rsbindgen
, since there were just too many things that would need changing to support (to name two things, multiple architectures in the same repo, and a nice file diff). In any case, the binding generator implementation is an implementation detail, and I actually intend to change it againBindgen.toml
calledtranslation-config.toml
. But for the most part, the intention is that fixes are implemented in normal Rust code, instead of imbedded in that file.Feel free to ask me any questions if there's something I haven't fully explained!
(I discovered your project a little while ago when researching names for
icrate
, and didn't really think much of it then, but I see that you are still active here, so I figured I would try to recruit you - or at the very least, get input from you ificrate
doesn't suit your needs ;) ).The text was updated successfully, but these errors were encountered: