Skip to content

Commit

Permalink
chore: retrieve sdk version from env (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
KeranYang authored Sep 9, 2024
1 parent 15d39fd commit d3afabd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub(crate) const MAP_MODE_KEY: &str = "MAP_MODE";
pub(crate) const UNARY_MAP: &str = "unary-map";
pub(crate) const BATCH_MAP: &str = "batch-map";
const MINIMUM_NUMAFLOW_VERSION: &str = "1.3.1";
const SDK_VERSION: &str = env!("CARGO_PKG_VERSION");

// ServerInfo structure to store server-related information
#[derive(Serialize, Deserialize, Debug)]
Expand Down Expand Up @@ -43,7 +44,7 @@ impl ServerInfo {
protocol: "uds".to_string(),
language: "rust".to_string(),
minimum_numaflow_version: MINIMUM_NUMAFLOW_VERSION.to_string(),
version: "0.0.1".to_string(),
version: SDK_VERSION.to_string(),
metadata: Option::from(metadata),
}
}
Expand Down

0 comments on commit d3afabd

Please sign in to comment.