--- crates/zed/src/main.rs.orig 2026-04-15 21:06:43 UTC +++ crates/zed/src/main.rs @@ -13,6 +13,7 @@ use collections::HashMap; use client::{Client, ProxySettings, RefreshLlmTokenListener, UserStore, parse_zed_link}; use collab_ui::channel_view::ChannelView; use collections::HashMap; +#[cfg(not(target_os = "freebsd"))] use crashes::InitCrashHandler; use db::kvp::{GlobalKeyValueStore, KeyValueStore}; use editor::Editor; @@ -192,6 +193,7 @@ fn main() { } // `zed --crash-handler` Makes zed operate in minidump crash handler mode + #[cfg(not(target_os = "freebsd"))] if let Some(socket) = &args.crash_handler { crashes::crash_server(socket.as_path()); return; @@ -336,6 +338,7 @@ fn main() { KeyValueStore::from_app_db(&app_db), )); + #[cfg(not(target_os = "freebsd"))] crashes::init( InitCrashHandler { session_id, @@ -570,6 +573,7 @@ fn main() { cx.subscribe(&user_store, { let telemetry = telemetry.clone(); move |_, evt: &client::user::Event, _| match evt { + #[cfg(not(target_os = "freebsd"))] client::user::Event::PrivateUserInfoUpdated => { crashes::set_user_info(crashes::UserInfo { metrics_id: telemetry.metrics_id().map(|s| s.to_string()), @@ -615,6 +619,7 @@ fn main() { auto_update::init(client.clone(), cx); dap_adapters::init(cx); auto_update_ui::init(cx); + #[cfg(not(target_os = "freebsd"))] reliability::init(client.clone(), cx); extension_host::init( extension_host_proxy.clone(),