-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of specifying `impl ClassType for ...`, we instead parse the custom attributes `#[unsafe(super(...))]`, `#[thread_kind = ...]` and `#[name = ...]`. This is nice because: - It's more concise. - It more closely matches what we might end up with once it can become and attribute macro: rust-lang/rfcs#3697 - We need to parse the attributes anyhow to override derives: #267 (The extern_class! part of that issue is now resolved). - It makes it easier to change ClassType in the future without having to change the macro API as well. Additionally, this commit also adds incomplete support for generics, to avoid the framework crates depending on an internal macro, and it improves rust-analyzer support in extern_class! by having more relaxed parsing.
- Loading branch information
Showing
69 changed files
with
1,396 additions
and
744 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.