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

Type register and method export attributes for objc in Rust like C# in xamarin? #56

Open
aristotle9 opened this issue Oct 31, 2017 · 0 comments

Comments

@aristotle9
Copy link

It is very convenient to expose a C# class to objc by using attributes. (Usage: https://developer.xamarin.com/guides/ios/advanced_topics/registrar/ Implement: https://github.com/mono/cocoa-sharp/) .

Rust has the same attribute system like C#. So is it possible to have these attributes in Rust?

One of the benefits or needs is to use solid type instead of marked type connect between Rust and objc, and to wrap Rust struct method instead of static method for objc message receiving.

cocoa-sharp has these tricks.

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

1 participant