From 5018b7b0325efa287d307d495ccc6180070d95a8 Mon Sep 17 00:00:00 2001 From: Benjamin Klum Date: Fri, 20 Dec 2024 19:17:32 +0100 Subject: [PATCH] High-level API: Use Sentry with Rustls instead of native TLS in order to avoid libssl dependency on Linux --- main/high/Cargo.toml | 5 +++-- test/test-extension-plugin/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main/high/Cargo.toml b/main/high/Cargo.toml index ba3f5b80..dc90d7c9 100644 --- a/main/high/Cargo.toml +++ b/main/high/Cargo.toml @@ -44,8 +44,9 @@ itertools = "0.10.5" camino = "1.1.7" # For excluding some fields from Debug derivative = "2.2.0" -# For reporting panics to Sentry or GlitchTip, if enabled -sentry = { version = "0.35.0", optional = true } +# For reporting panics to Sentry or GlitchTip, if enabled. +# We insist on rustls instead of native-tls because we don't want libssl dependencies on Linux. +sentry = { version = "0.35.0", optional = true, default-features = false, features = ["backtrace", "contexts", "panic", "reqwest", "debug-images", "rustls"] } [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", features = ["psapi", "processthreadsapi", "winuser"] } \ No newline at end of file diff --git a/test/test-extension-plugin/Cargo.toml b/test/test-extension-plugin/Cargo.toml index a17a9515..9a6248d1 100644 --- a/test/test-extension-plugin/Cargo.toml +++ b/test/test-extension-plugin/Cargo.toml @@ -23,7 +23,7 @@ c_str_macro = "1.0.2" tracing.workspace = true [dev-dependencies] -reqwest = { version = "0.10", features = ["blocking"] } +reqwest = { version = "0.10", default-features = false, features = ["blocking"] } tar = "0.4.26" xz2 = "0.1" wait-timeout = "0.1.5"