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

rust: Remove build dependency on protoc #104

Merged
merged 1 commit into from
Apr 10, 2022
Merged

rust: Remove build dependency on protoc #104

merged 1 commit into from
Apr 10, 2022

Conversation

olix0r
Copy link
Member

@olix0r olix0r commented Apr 9, 2022

The protobuf project does not publish protoc binaries for 32-bit ARM
hosts, which complicates our compilation tooling for ARM. This problem
can be avoided completely by committing the generated interface
bindings so that crates that depend on linkerd2-proxy-api don't need
any build dependencies.

This change removes the client, server, and transport features.
Client and server bindings are now always generated for gRPC services.
The transport feature is removed, since it cannot be optional if the
generated code is stored in the repo. We don't want to require tonic's
transport feature because it pulls in many dependencies that we don't
really need.

@olix0r olix0r force-pushed the ver/pregen branch 3 times, most recently from 9463bb1 to 3fac02b Compare April 9, 2022 23:49
The protobuf project does not publish `protoc` binaries for 32-bit ARM
hosts, which complicates our compilation tooling for ARM. This problem
can be avoided completely by committing the generated interface
bindings so that crates that depend on `linkerd2-proxy-api` don't need
any build dependencies.

This change removes the `client`, `server`, and `transport` features.
Client and server bindings are now always generated for gRPC services.
The `transport` feature is removed, since it cannot be optional if the
generated code is stored in the repo. We don't want to require tonic's
transport feature because it pulls in many dependencies that we don't
really need.

Signed-off-by: Oliver Gould <ver@buoyant.io>
@olix0r olix0r merged commit ee612d7 into main Apr 10, 2022
@olix0r olix0r deleted the ver/pregen branch April 10, 2022 00:26
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.

1 participant