Generate clients with buf:
Ensure buf and protoc are installed on your system.
buf dep update ./protoInstall "protoc-gen-*" with cargo.
cargo install protoc-gen-prost
cargo install protoc-gen-prost-crate
cargo install protoc-gen-tonicbuf generate proto --template proto/buf.gen.rust.yamlOutputs will be in out/ directory.
Install "protoc-gen-*" with npm.
npm install -g ts-protobuf generate proto --template proto/buf.gen.ts.yamlOutputs will be in services/ directory.
Install protolint with npx.
npx protolintprotolint lint protoWhen using "vscode-proto3" extention in VS Code, add the following to the '.vscode/settings.json' file in order to make the import paths work.
{
"protoc": {
"options": ["--proto_path=proto"]
}
}how to select only specific proto, use --path args
buf generate proto --template service-apis/proto/buf.gen.py.yaml -o gen --path service-apis/proto/digitalkin/kin --path service-apis/proto/google