Skip to content

Commit

Permalink
chore: export proto definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Vigith Maurice <vigith@gmail.com>
  • Loading branch information
vigith committed Apr 2, 2024
1 parent 819ddad commit fe8c4b2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
edition = "2021"
indent_style = "Block"
3 changes: 2 additions & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use tonic::{async_trait, Request, Response, Status};

use crate::shared;

mod proto {
/// Numaflow Map Proto definitions.
pub mod proto {
tonic::include_proto!("map.v1");
}

Expand Down
3 changes: 2 additions & 1 deletion src/reduce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ use crate::shared;

use self::reducer::reduce_server::Reduce;

mod reducer {
/// Numaflow Reduce Proto definitions.
pub mod reducer {
tonic::include_proto!("reduce.v1");
}

Expand Down
2 changes: 1 addition & 1 deletion src/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use tonic::{Request, Status, Streaming};

use crate::shared;

mod proto {
pub mod proto {
tonic::include_proto!("sink.v1");
}

Expand Down
3 changes: 2 additions & 1 deletion src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ use tokio::sync::mpsc::{self, Sender};
use tokio_stream::wrappers::ReceiverStream;
use tonic::{async_trait, Request, Response, Status};

mod proto {
/// Source Proto definitions.
pub mod proto {
tonic::include_proto!("source.v1");
}

Expand Down
3 changes: 2 additions & 1 deletion src/sourcetransform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use tonic::{async_trait, Request, Response, Status};

use crate::shared::{self, prost_timestamp_from_utc};

mod proto {
/// Numaflow SourceTransformer Proto definitions.
pub mod proto {
tonic::include_proto!("sourcetransformer.v1");
}

Expand Down

0 comments on commit fe8c4b2

Please sign in to comment.