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

Split out codegen into crates #196

Open
arlyon opened this issue Mar 24, 2022 · 0 comments · Fixed by #452
Open

Split out codegen into crates #196

arlyon opened this issue Mar 24, 2022 · 0 comments · Fixed by #452
Milestone

Comments

@arlyon
Copy link
Owner

arlyon commented Mar 24, 2022

I have been doing some planning on how we can rework the api for 0.15. This will be a minimal outcome for end users but will change the way types are managed and reexported internally to enable parallel compilation.

In 0.14 I split the codegen to work in terms of Files. A file logs all of its dependencies and these are added when the file is written. The goal is to

  • expand the import tracking metadata to track the crate it is coming from - initially the crate will just be stripe
  • define some metadata on organising crates
  • write a crate generating module that will create a cargo file, generate all the dependencies, and add a mod that exports all the items inside it
  • resolve dependencies between cargo files (and crates)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant