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

build: don't call cargo from build.rs #150

Merged

Conversation

grim7reaper
Copy link
Contributor

This doesn't work when building outside of Cargo (e.g. using Bazel that invoke rustc directly).

@grim7reaper
Copy link
Contributor Author

If you really want to ensure that the code is correctly formatted you can configure your editor to run the format command on-save (most editor can do this with LSP) and/or add a GitHub action that check that the code is correctly formatted before the merge (I can give you a snippet if needed 🙂)

build.rs Show resolved Hide resolved
@ringsaturn
Copy link
Owner

I agree that fmt should not runned when build, I’ll move that to CI.

This doesn't work when building outside of Cargo (e.g. using Bazel that
invoke rustc directly).
@grim7reaper grim7reaper force-pushed the do-not-call-cargo-during-build branch from 8a1a2e0 to 9235e46 Compare March 13, 2024 12:56
@ringsaturn ringsaturn merged commit ff70e87 into ringsaturn:main Mar 13, 2024
1 check passed
@ringsaturn
Copy link
Owner

Released in 0.4.6

@grim7reaper grim7reaper deleted the do-not-call-cargo-during-build branch March 13, 2024 13:31
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.

None yet

2 participants