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

Handle generics in NativeScript derive and #[methods] #983

Merged
merged 2 commits into from
Dec 6, 2022

Commits on Dec 4, 2022

  1. Add the #[skip] attribute for skipping fields in FromVarargs.

    This is useful mainly for skipping marker fields in generic code.
    chitoyuu committed Dec 4, 2022
    Configuration menu
    Copy the full SHA
    c58a87e View commit details
    Browse the repository at this point in the history
  2. Handle generics in NativeScript derive and #[methods]

    The derive macros are now aware of both lifetime and type parameters.
    `'static` bounds are added to both kinds, which improves the error
    message shown when a user tries to put a lifetime into a NativeClass.
    
    This behavior is chosen because unlike type parameters, lifetime
    parameters aren't very useful in this context: only `'static` would be
    supported anyway, and any attempted usage is hightly likely to have
    originated from user error.
    chitoyuu committed Dec 4, 2022
    Configuration menu
    Copy the full SHA
    81e1bff View commit details
    Browse the repository at this point in the history