Skip to content

generate all files during build#40

Open
mikea wants to merge 4 commits intomainfrom
maizatskyi/2024-12-11-regen
Open

generate all files during build#40
mikea wants to merge 4 commits intomainfrom
maizatskyi/2024-12-11-regen

Conversation

@mikea
Copy link
Copy Markdown
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
Comment thread recapnc/build.rs
let output = Command::new(&command)
.arg("--version")
.output()
.expect("capnp tool can't be executed, change PATH or CAPNP_TOOL_PATH");
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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