Skip to content
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

Automatic binding generation? #171

Closed
bors-servo opened this issue Feb 1, 2018 · 3 comments
Closed

Automatic binding generation? #171

bors-servo opened this issue Feb 1, 2018 · 3 comments

Comments

@bors-servo
Copy link
Contributor

Issue by frewsxcv
Saturday Nov 26, 2016 at 21:20 GMT
Originally opened as servo/cocoa-rs#147


PyObjc (and possibly RubyCocoa?) use .fwinfo files to generate language bindings around Cocoa and similar objective C libraries:

https://bitbucket.org/ronaldoussoren/pyobjc/raw/6b74fc7e1ba0995038dc5c1f162d1fad860ff175/pyobjc-framework-Cocoa/metadata/raw.AppKit/x86_64-10.10.fwinfo

From what I can tell, PyObjC uses a tool called objective.metadata to generate these files:

https://bitbucket.org/ronaldoussoren/objective.metadata/src/bd0f1b994403?at=default

Has anyone thought about doing automatic binding generation for cocoa-rs? Anyone know of easy strategies?

@bors-servo
Copy link
Contributor Author

Comment by chances
Friday Jan 20, 2017 at 08:52 GMT


Is rust-bindgen a good option?

@bors-servo
Copy link
Contributor Author

Comment by frewsxcv
Friday Jan 20, 2017 at 14:38 GMT


It's possible, but I'm familiar with bindgen enough to know for sure.

@jdm
Copy link
Member

jdm commented Feb 1, 2018

Duplicate.

@jdm jdm closed this as completed Feb 1, 2018
jrmuizel pushed a commit to jrmuizel/core-foundation-rs that referenced this issue Feb 2, 2018
Bump core-graphics dependency and version

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/171)
<!-- Reviewable:end -->
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

No branches or pull requests

2 participants