logo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::protocol::{ClientSdkInfo, ClientSdkPackage};

/// The version of the library
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

lazy_static::lazy_static! {
    pub static ref USER_AGENT: String = format!("sentry.rust/{}", VERSION);
    pub static ref SDK_INFO: ClientSdkInfo = ClientSdkInfo {
        name: "sentry.rust".into(),
        version: VERSION.into(),
        packages: vec![ClientSdkPackage {
            name: "cargo:sentry".into(),
            version: VERSION.into(),
        }],
        integrations: vec![],
    };
}