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

(model): standalone py/rust packages for capnproto generated code #1667

Open
Tracked by #1433
ss2165 opened this issue Nov 18, 2024 · 2 comments
Open
Tracked by #1433

(model): standalone py/rust packages for capnproto generated code #1667

ss2165 opened this issue Nov 18, 2024 · 2 comments

Comments

@ss2165
Copy link
Member

ss2165 commented Nov 18, 2024

Separate workflows should generate code from capnproto, so that it is not needed as a system dependency for hugr use.
It may be convenient to make the generated code standalone-separately versioned packages.

See: https://github.com/cqcl-dev/quantinuumapis/

@zrho
Copy link
Contributor

zrho commented Nov 19, 2024

As long as the workflow stays optional in the local dev process. Having the capnproto cli tool around at devtime is quite easy to manage; integrating CI workflows when trying out new changes is a lot more tricky.

(Note that the capnproto toolchain isn't a runtime dependency, so it only has to be around when building the packages and not when using them)

@ss2165
Copy link
Member Author

ss2165 commented Nov 19, 2024

Yeah this is much more worthwhile once the schema itself stops evolving quickly. Once that happens I'm leaning towards moving it in to separate packages, then those packages can be evolved locally as required. CI would just build and publish.

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

2 participants