-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuf.gen.yaml
More file actions
127 lines (126 loc) · 4.3 KB
/
Copy pathbuf.gen.yaml
File metadata and controls
127 lines (126 loc) · 4.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#
# xtcp buf.gen.yaml
# https://buf.build/docs/configuration/v2/buf-gen-yaml/
#
version: v2
managed:
enabled: true
disable:
- module: buf.build/googleapis/googleapis
file_option: go_package_prefix
- file_option: go_package_prefix
module: buf.build/bufbuild/protovalidate
plugins:
# https://buf.build/plugins
#--------------------------
# protocolbuffers/go
# https://buf.build/protocolbuffers/go
- remote: buf.build/protocolbuffers/go
out: .
#out: proto/gen/go
# opt:
# - paths=source_relative
#--------------------------
# planetscale/vtprotobuf — reflection-free MarshalVT/SizeVT/UnmarshalVT.
# Runs after protocolbuffers/go (it generates *_vtproto.pb.go alongside the
# base *.pb.go in the same package). Used on the protobufList hot path; see
# pkg/recordfmt/marshal_envelope.go and pkg/xtcp/marshallers.go.
# https://buf.build/community/planetscale-vtprotobuf
- remote: buf.build/community/planetscale-vtprotobuf:v0.6.0
out: .
opt:
- features=marshal+unmarshal+size
#--------------------------
# protocolbuffers/go
# https://buf.build/grpc/go
- remote: buf.build/grpc/go
out: .
#out: proto/gen/go
# opt:
# - paths=source_relative
# - require_unimplemented_servers=false
#--------------------------
# OpenAPIv2 ( swagger )
# https://buf.build/grpc-ecosystem/openapiv2
# https://buf.build/grpc-ecosystem/openapiv2?version=v2.26.3
- remote: buf.build/grpc-ecosystem/openapiv2:v2.26.3
out: .
#out: proto/gen/openapiv2
# opt:
# - paths=source_relative
#--------------------------
# REST to GRPC
# https://grpc-ecosystem.github.io/grpc-gateway/docs/tutorials/adding_annotations/#using-buf
# https://grpc-ecosystem.github.io/grpc-gateway/docs/tutorials/creating_main.go/
# https://github.com/grpc-ecosystem/grpc-gateway#usage
# https://buf.build/grpc-ecosystem/gateway
# https://buf.build/grpc-ecosystem/gateway?version=v2.26.3
#- remote: buf.build/grpc-ecosystem/gateway:v2.26.3
- remote: buf.build/grpc-ecosystem/gateway:v2.26.3
out: .
#out: proto/gen/go
opt:
- generate_unbound_methods=true
# - paths=source_relative
# https://github.com/grpc-ecosystem/grpc-gateway/blob/main/buf.gen.yaml
# - local: protoc-gen-grpc-gateway
# out: pkg/flatxtcppb
# opt:
# - paths=source_relative
# - allow_repeated_fields_in_body=true
# #--------------------------
# # connectrpc
# # https://buf.build/connectrpc/go?version=v1.17.0
# # https://connectrpc.com/docs/go/getting-started
# - remote: buf.build/connectrpc/go:v1.17.0
# out: .
# opt:
# - paths=source_relative
#--------------------------
# Dart
# https://buf.build/protocolbuffers/dart?version=v21.1.2
- remote: buf.build/protocolbuffers/dart:v21.1.2
out: dart
#out: proto/gen/dart
opt:
# Enable the "grpc" option if you need gRPC stubs.
- grpc
#--------------------------------
# Python
# https://buf.build/protocolbuffers/python?version=v30.1
- remote: buf.build/protocolbuffers/python:v30.1
out: python
#out: proto/gen/python
# dependencies
- remote: buf.build/protocolbuffers/pyi:v30.1
out: python
# https://buf.build/grpc/python?version=v1.71.0
- remote: buf.build/grpc/python:v1.71.0
out: python
#--------------------------------
# C++
# https://buf.build/bufbuild/validate-cpp?version=v1.1.0
- remote: buf.build/bufbuild/validate-cpp:v1.1.0
out: gen
# https://buf.build/grpc/cpp?version=v1.69.0
- remote: buf.build/grpc/cpp:v1.69.0
out: gen
# https://buf.build/protocolbuffers/cpp?version=v29.3
- remote: buf.build/protocolbuffers/cpp:v29.3
out: gen
# #--------------------------------
# # Rust/Tonic
# # https://buf.build/community/neoeinstein-tonic?version=v0.4.1
# - remote: buf.build/community/neoeinstein-tonic:v0.4.1
# out: proto/gen/rust
# # dependencies
# - remote: buf.build/community/neoeinstein-prost:v0.4.0
# out: proto/gen/rust
# #-------------------------------------
# # BigQuery Schema
# # https://buf.build/googlecloudplatform/bq-schema?version=v2.0.1
# # https://github.com/GoogleCloudPlatform/protoc-gen-bq-schema
# - remote: buf.build/googlecloudplatform/bq-schema:v2.0.1
# out: proto/gen/bq-schema
# example: https://github.com/nucleuscloud/neosync/blob/main/buf.gen.yaml
# end