sentry_core/
constants.rs
1#![allow(dead_code)]
3
4use once_cell::sync::Lazy;
5
6use crate::protocol::{ClientSdkInfo, ClientSdkPackage};
7
8const VERSION: &str = env!("CARGO_PKG_VERSION");
10pub(crate) const USER_AGENT: &str = concat!("sentry.rust/", env!("CARGO_PKG_VERSION"));
11
12pub(crate) static SDK_INFO: Lazy<ClientSdkInfo> = Lazy::new(|| ClientSdkInfo {
13 name: "sentry.rust".into(),
14 version: VERSION.into(),
15 packages: vec![ClientSdkPackage {
16 name: "cargo:sentry".into(),
17 version: VERSION.into(),
18 }],
19 integrations: vec![],
20});