Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Examples

Examples on how to use rules_buf in various scenarios. For more info refer to the official docs.

Scenarios

This demonstrates using this repo with Bazel modules.

This demonstrates basic setup and pinning a buf cli version. This also demonstrates using the buf cli as a bazel toolchain.

This demonstrates setting up the gazelle plugin to generate proto_library, buf_lint_test, and buf_breaking_test rules.

This demonstrates setting up lint and breaking tests in a project with a buf.yaml.

This demonstrates setting up lint and breaking tests in a v1 buf.work.yaml workspace project.

This demonstrates setting up lint and breaking tests using a v2 buf.yaml workspace.

A minimal end-to-end example: proto_library plus generated Connect/Go server code, built and run via Bazel.

This demonstrates using the buf_format rule together with the toolchains_protoc hermetic protoc toolchain.

This exercises the lint extension's behavior on a proto_library that includes an unused import, using the standard protobuf Bazel module for protoc.