Skip to content

Commit

Permalink
proper gen
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Jan 1, 2024
1 parent 8c491b9 commit 56c3469
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ go.work.sum
# generated protobuf files
ui/grpc_generated
flow/generated
nexus/pt/src/gen
6 changes: 3 additions & 3 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ plugins:
opt:
- paths=source_relative
- plugin: buf.build/community/neoeinstein-prost:v0.2.3
out: nexus/pt/src
out: nexus/pt/src/gen
opt:
- compile_well_known_types
- extern_path=.google.protobuf=::pbjson_types
- plugin: buf.build/community/neoeinstein-tonic:v0.3.0
out: nexus/pt/src
out: nexus/pt/src/gen
- plugin: buf.build/community/neoeinstein-prost-serde:v0.2.3
out: nexus/pt/src
out: nexus/pt/src/gen
opt:
- ignore_unknown_fields=true
- plugin: buf.build/community/stephenh-ts-proto:v1.156.8
Expand Down
3 changes: 3 additions & 0 deletions nexus/pt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ use sqlparser::ast::PeerType;

pub mod flow_model;
#[rustfmt::skip]
#[path ="./gen/peerdb_flow.rs"]
pub mod peerdb_flow;
#[rustfmt::skip]
#[path ="./gen/peerdb_peers.rs"]
pub mod peerdb_peers;
#[rustfmt::skip]
#[path ="./gen/peerdb_route.rs"]
pub mod peerdb_route;

impl From<PeerType> for DbType {
Expand Down

0 comments on commit 56c3469

Please sign in to comment.