From 588aa101e641627481e7b4b8053c9dd8ed16a841 Mon Sep 17 00:00:00 2001 From: Sungmann Cho Date: Wed, 15 Nov 2023 22:59:26 +0900 Subject: [PATCH] Fix a broken build The tip of tree currently breaks at: ... Compiling sentry-types v0.31.8 Compiling sentry-core v0.31.8 Compiling sentry-contrib-breakpad v0.8.0 error[E0599]: no function or associated item named `new_v4` found for struct `Uuid` in the current scope --> src/shared.rs:26:46 | 26 | .unwrap_or_else(types::Uuid::new_v4), | ^^^^^^ | | | function or associated item not found in `Uuid` This is due to the fact that a breaking change was introduced at https://github.com/getsentry/sentry-rust/pull/614. --- Cargo.toml | 2 +- src/shared.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e890214..5598036 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ debug-logs = [] [dependencies] breakpad-handler = { version = "0.2.0", path = "./breakpad-handler" } -sentry-core = { version = ">=0.29", features = ["client"] } +sentry-core = { version = ">=0.31.7", features = ["client"] } serde_json = "1.0" [workspace] diff --git a/src/shared.rs b/src/shared.rs index 738b138..7b6902e 100644 --- a/src/shared.rs +++ b/src/shared.rs @@ -23,7 +23,7 @@ pub(crate) fn assemble_envelope(md: CrashMetadata, minidump_path: &Path) -> prot event_id: minidump_path .file_stem() .and_then(|fname| fname.to_str().and_then(|fs| fs.parse::().ok())) - .unwrap_or_else(types::Uuid::new_v4), + .unwrap_or_else(types::random_uuid), level: proto::Level::Fatal, timestamp, ..Default::default()