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

generate all files during build #40

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

mikea
Copy link
Contributor

@mikea mikea commented Dec 11, 2024

This removes all generated files from the check-in.

Also makes "capnp" dependency explicitly checked.

CAPNP_TOOL_PATH overrides capnp tool location at build time
@mikea mikea requested a review from ObsidianMinor December 11, 2024 21:18
@mikea mikea requested a review from a team as a code owner December 11, 2024 21:18
@mikea mikea force-pushed the maizatskyi/2024-12-11-regen branch from 1d89b35 to 97ec679 Compare December 11, 2024 21:21
@mikea mikea force-pushed the maizatskyi/2024-12-11-regen branch from 6d473fe to 11d1d77 Compare December 12, 2024 18:14
let output = Command::new(&command)
.arg("--version")
.output()
.expect("capnp tool can't be executed, change PATH or CAPNP_TOOL_PATH");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what happens if I decide to make some sort of tool or plugin separate from cargo's build.rs to generate code? This library would require that it can see the capnp tool before we actually decided we need it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what's the big deal? You will probably have capnc available anyway. I think it is just a minor incovenience comparing to having robust error messaging. I can throw it away if you wish, but I think it will be a much better user experience if we have it, since I assume most people will depend on recapnc through the dev dependency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can also do it only if CAPNP_TOOL_PATH is set?

@mikea mikea requested a review from ObsidianMinor December 16, 2024 19:23
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

Successfully merging this pull request may close these issues.

2 participants