guard/Protobuild.toml

48 lines
1.9 KiB
TOML
Raw Normal View History

2019-07-10 20:59:43 +00:00
version = "unstable"
generator = "gogo"
# Plugins allows one to specify one or more plugins for use in generation.
#
# The common example grpc is provided below.
2019-07-10 20:59:43 +00:00
plugins = ["grpc"]
# Control protoc include paths. Below are usually some good defaults, but feel
# free to try it without them if it works for your project.
[includes]
# Include paths that will be added before all others. Typically, you want to
# treat the root of the project as an include, but this may not be necessary.
#
# "." is included by default
before = ["."]
2019-07-10 20:59:43 +00:00
# Paths that should be treated as include roots in relation to the vendor
# directory. These will be calculated with the vendor directory nearest the
# target package.
#
# With the example below, we import the gogo protobufs from the vendor
# directory.
#
# This is empty by default.
vendored = ["github.com/gogo/protobuf", "github.com/gogo/googleapis"]
2019-07-10 20:59:43 +00:00
# Paths that will be added untouched to the end of the includes. We use
# `/usr/local/include` to pickup the common install location of protobuf.
# This is the default.
# after = ["usr/local/include"]
2019-07-10 20:59:43 +00:00
# This section let's us map protobuf imports to Go packages. These will become
2019-07-10 20:59:43 +00:00
# `-M` directives in the call to the go protobuf generator.
#
# We have a few examples to map packages from the examples.
2019-07-10 20:59:43 +00:00
[packages]
"gogoproto/gogo.proto" = "github.com/gogo/protobuf/gogoproto"
"google/api/annotations.proto" = "github.com/gogo/googleapis"
"google/api/http.proto" = "github.com/gogo/googleapis"
2019-07-10 20:59:43 +00:00
"google/protobuf/descriptor.proto" = "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
"google/protobuf/timestamp.proto" = "github.com/gogo/protobuf/types"
"google/protobuf/duration.proto" = "github.com/gogo/protobuf/types"
"google/protobuf/any.proto" = "github.com/gogo/protobuf/types"
"google/protobuf/empty.proto" = "github.com/gogo/protobuf/types"