From 69a7dc411c62c2df021b9a0f648e63d7316d8b1b Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 16 Jul 2025 11:22:28 -0600 Subject: chore: add buf plugin to generate rust code --- .bufignore | 1 + buf.gen.yaml | 12 ++++++++++++ buf.yaml | 1 - 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .bufignore create mode 100644 buf.gen.yaml diff --git a/.bufignore b/.bufignore new file mode 100644 index 00000000..a725465a --- /dev/null +++ b/.bufignore @@ -0,0 +1 @@ +vendor/ \ No newline at end of file diff --git a/buf.gen.yaml b/buf.gen.yaml new file mode 100644 index 00000000..ffdcdee9 --- /dev/null +++ b/buf.gen.yaml @@ -0,0 +1,12 @@ +version: v2 +inputs: + - module: buf.build/authzed/api +plugins: + - remote: buf.build/community/neoeinstein-prost:v0.4.0 + out: src/gen + opt: + - compile_well_known_types + - remote: buf.build/community/neoeinstein-tonic:v0.4.0 + out: src/gen + opt: + - compile_well_known_types \ No newline at end of file diff --git a/buf.yaml b/buf.yaml index adb31bfb..d07f90fb 100644 --- a/buf.yaml +++ b/buf.yaml @@ -1,7 +1,6 @@ # For details on buf.yaml configuration, visit https://buf.build/docs/configuration/v2/buf-yaml version: v2 deps: - - buf.build/bufbuild/protovalidate - buf.build/authzed/api lint: use: -- cgit v1.2.3