Skip to content

Commit

Permalink
proto: generate mod.rs with remote plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelrogstad authored and nchashch committed Sep 24, 2024
1 parent a47536f commit fb59d05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ plugins:
- remote: buf.build/community/neoeinstein-prost:v0.4.0
out: src/gen

- remote: buf.build/community/neoeinstein-prost-crate:v0.4.1
out: src/gen
opt:
# this option is required for remote generation to work
- no_features

# gRPC service generation
# https://buf.build/community/neoeinstein-tonic?version=v0.4.1
- remote: buf.build/community/neoeinstein-tonic:v0.4.1
Expand Down
1 change: 0 additions & 1 deletion src/gen.rs

This file was deleted.

6 changes: 6 additions & 0 deletions src/gen/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// @generated
// @@protoc_insertion_point(attribute:validator)
pub mod validator {
include!("validator.rs");
// @@protoc_insertion_point(validator)
}

0 comments on commit fb59d05

Please sign in to comment.