Skip to main content

hey_sdk/
version.rs

1pub use crate::generated::API_VERSION;
2
3/// The SDK's own version, from Cargo.toml.
4pub const VERSION: &str = env!("CARGO_PKG_VERSION");
5
6/// The `User-Agent` requests go out with: the SDK and the API contract it was built
7/// against, which is how HEY sees what a client is working from.
8pub fn default_user_agent() -> String {
9    format!("hey-sdk-rust/{VERSION} (api:{API_VERSION})")
10}