diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-16 16:50:56 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-16 16:50:56 -0600 |
| commit | 095a098a4416d3222d26303a435fbdacc81db12e (patch) | |
| tree | 07496e1fe75bf5a2af15cfa0054eec16c41f0e60 | |
| parent | ac86fe39f0828e9c55b446a26c44b6b5813c1541 (diff) | |
chore: compile protobuf definitions
| -rw-r--r-- | .gitmodules | 2 | ||||
| -rw-r--r-- | Cargo.lock | 1 | ||||
| -rw-r--r-- | Cargo.toml | 4 | ||||
| -rw-r--r-- | buf.gen.yaml | 2 | ||||
| -rw-r--r-- | build.rs | 9 | ||||
| m--------- | etc/proto/authzed (renamed from protos/authzed) | 0 |
6 files changed, 17 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules index b196c8e2..b657401e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "protos/authzed"] - path = protos/authzed + path = etc/proto/authzed url = https://github.com/authzed/api.git @@ -161,6 +161,7 @@ dependencies = [ "log", "please", "prost", + "prost-build", "prost-types", "reqwest", "serde", @@ -32,3 +32,7 @@ urlencoding = "2.1" tokio-stream = "0.1" tokio-test = "0.4.0" tonic-build = "0.13" + +[build-dependencies] +prost-build = "0.13.5" +tonic-build = "0.13" diff --git a/buf.gen.yaml b/buf.gen.yaml index 5af20b34..e7215145 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -6,3 +6,5 @@ plugins: out: src/rpc opt: - compile_well_known_types + - disable_comments + - skip_debug diff --git a/build.rs b/build.rs new file mode 100644 index 00000000..8ba38bf2 --- /dev/null +++ b/build.rs @@ -0,0 +1,9 @@ +use std::io::Result; + +fn main() -> Result<()> { + let _ = tonic_build::configure().out_dir("src/rpc").compile_protos( + &["etc/proto/authzed/authzed/api/v1/permission_service.proto"], + &["etc/proto/authzed"], + ); + Ok(()) +} diff --git a/protos/authzed b/etc/proto/authzed -Subproject 93ee7611fb4f7abeb69b2918c8509f24ccef366 +Subproject 93ee7611fb4f7abeb69b2918c8509f24ccef366 |
