-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
88 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
use once_cell::sync::Lazy; | ||
|
||
use crate::protocol::{ClientSdkInfo, ClientSdkPackage}; | ||
|
||
/// The version of the library | ||
pub const VERSION: &str = env!("CARGO_PKG_VERSION"); | ||
pub const USER_AGENT: &str = concat!("sentry.rust/", 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(), | ||
pub static SDK_INFO: Lazy<ClientSdkInfo> = Lazy::new(|| ClientSdkInfo { | ||
name: "sentry.rust".into(), | ||
version: VERSION.into(), | ||
packages: vec![ClientSdkPackage { | ||
name: "cargo:sentry".into(), | ||
version: VERSION.into(), | ||
packages: vec![ClientSdkPackage { | ||
name: "cargo:sentry".into(), | ||
version: VERSION.into(), | ||
}], | ||
integrations: vec![], | ||
}; | ||
} | ||
}], | ||
integrations: vec![], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters