facebook / facebook/buck2

Define a protobuf toolchain

Open
#29 0 comments 1 reaction 0 assignees View on GitHub
prelude
Dominant language
Rust
Stars
4.4k
Forks
394
PR merge metrics
No merged PRs in 30d

Description

https://github.com/facebookincubator/buck2/pull/28 introduces a custom rule to download a protobuf distribution appropriate for the current platform and ready for use by rules like `rust_protobuf_library`.
This concept could be extended to promote protobuf to a proper toolchain under `prelude//toolchains` similar to e.g. `prelude//toolchains/cxx/zig`.
Before implementing this we should research protobuf toolchains in the Bazel ecosystem and see which lessons can be drawn for Buck2. A useful resource may be [this document by the Bazel rule author SIG](https://bazel-contrib.github.io/SIG-rules-authors/proto-grpc.html).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.