ckb_sentry_core/
constants.rs

1use crate::protocol::{ClientSdkInfo, ClientSdkPackage};
2
3/// The version of the library
4pub const VERSION: &str = env!("CARGO_PKG_VERSION");
5
6lazy_static::lazy_static! {
7    pub static ref USER_AGENT: String = format!("sentry.rust/{}", VERSION);
8    pub static ref SDK_INFO: ClientSdkInfo = ClientSdkInfo {
9        name: "sentry.rust".into(),
10        version: VERSION.into(),
11        packages: vec![ClientSdkPackage {
12            name: "cargo:sentry".into(),
13            version: VERSION.into(),
14        }],
15        integrations: vec![],
16    };
17}