feat: replace scale-info with sails-type-registry#1248
feat: replace scale-info with sails-type-registry#1248
Conversation
* feat(type-registry): implement native alias expansion and fix IDL generics * refactor(idl-meta): replace scale-info with sails-type-registry * refactor(idl-gen): migrate from scale-info to sails-type-registry * refactor(macros): update generated code attributes to use type_info * refactor(core): update TypeInfo exports and dependencies * feat(type-registry): add metadata hints for generics and constants * feat: implement MetaType for runtime type registration and introspection * feat: separate core primitives and gprimitives with TypeDef::GPrimitive
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request undertakes a significant refactoring effort to replace the existing Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request replaces scale-info with a new sails-type-registry crate. This is a significant refactoring that touches many files. The changes are mostly mechanical replacements of attributes and imports. The new sails-type-registry and sails-type-registry-derive crates are introduced. The logic for IDL generation in rs/idl-gen has been substantially updated to work with the new type registry.
I've found a couple of critical issues. One is a circular dependency in the root Cargo.lock file for the new sails-type-registry crate. The other is a logic bug in the type name resolution in rs/idl-gen/src/type_resolver.rs which could lead to name collisions.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a significant architectural change by replacing the scale-info dependency with a new, custom sails-type-registry crate. This refactoring is extensive, affecting dependency management, IDL generation, macros, and numerous examples and tests. The new sails-type-registry provides a more powerful and tailored type information system, which simplifies and improves the logic for handling complex types, especially generics and const generics. The changes appear to be well-executed and consistent across the codebase, resulting in a cleaner and more robust implementation. Overall, this is a solid improvement to the project's architecture.
bb7e0c6 to
a07010f
Compare
No description provided.