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

health, reflection: make rustfmt dependency optional #785

Merged
merged 4 commits into from Oct 19, 2021
Merged

health, reflection: make rustfmt dependency optional #785

merged 4 commits into from Oct 19, 2021

Conversation

DavDave1
Copy link
Contributor

Motivation

Rust Docker images for automated builds don't include rustfmt, so building tonic-health or tonic-reflection crates requires adding a rustfmt installation step to build scripts.

Solution

Make rustfmt requirement optional for tonic-health and tonic-reflection.
This feature is kept enabled as default so that existing code won't break.

Propagate rustfmt feature from build to health and reflection crates, so that rustfmt dependency
can be optionally disabled

Fixes #775
tonic-health/Cargo.toml Outdated Show resolved Hide resolved
@LucioFranco
Copy link
Member

lol sorry for the noise totally botched the merge xD, thanks for the contribution!

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

3 participants