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

Support module reference in Molecule #58

Open
doitian opened this issue Jul 27, 2022 · 0 comments
Open

Support module reference in Molecule #58

doitian opened this issue Jul 27, 2022 · 0 comments

Comments

@doitian
Copy link
Member

doitian commented Jul 27, 2022

Describe the Problem

Say I want to develop a CKB tool which uses the CKB core molecule structures and also has its own structures. If my tool structure uses any structure defined in CKB, I should copy CKB molecule scheme and generate the interfaces together. It means a lot of work because of #57. And in the language like Rust, all the generated CKB structures are not the same module, this hurts the interoperation between the different tools.

Suggested Solution

Support module reference in Molecule, so the code generator can skip some molecule schema file and import them via language package system. For the example above, it means we can use ckb_types instead of generating the CKB types again.

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