Protobuild.toml 1.0 KB

12345678910111213141516171819202122232425262728
  1. version = "2"
  2. generators = ["go"]
  3. # Control protoc include paths. Below are usually some good defaults, but feel
  4. # free to try it without them if it works for your project.
  5. [includes]
  6. # Include paths that will be added before all others. Typically, you want to
  7. # treat the root of the project as an include, but this may not be necessary.
  8. before = ["."]
  9. # Paths that will be added untouched to the end of the includes. We use
  10. # `/usr/local/include` to pickup the common install location of protobuf.
  11. # This is the default.
  12. after = ["/usr/local/include"]
  13. # This section maps protobuf imports to Go packages. These will become
  14. # `-M` directives in the call to the go protobuf generator.
  15. [packages]
  16. "google/protobuf/any.proto" = "github.com/gogo/protobuf/types"
  17. "proto/status.proto" = "google.golang.org/genproto/googleapis/rpc/status"
  18. [[overrides]]
  19. # enable ttrpc and disable fieldpath and grpc for the shim
  20. prefixes = ["github.com/containerd/ttrpc/integration/streaming"]
  21. generators = ["go", "go-ttrpc"]
  22. [overrides.parameters.go-ttrpc]
  23. prefix = "TTRPC"