Replace unwind-sys with backtrace crate on Linux (#37728)

This PR removes `unwind-sys` usage from background_hang_monitor on
Linux, replacing it with the [backtrace
crate](https://crates.io/crates/backtrace).

Testing: `hang_monitor-tests.rs` still pass after the change (on Ubuntu
24.04).
Fixes: https://github.com/servo/servo/issues/35063

---------

Signed-off-by: CarePackage17 <5157010+CarePackage17@users.noreply.github.com>
This commit is contained in:
CarePackage17 2025-06-27 14:20:10 +02:00 committed by GitHub
parent be1ebb8ad4
commit a93d977020
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 85 deletions

11
Cargo.lock generated
View file

@ -704,7 +704,6 @@ dependencies = [
"mach2",
"nix",
"serde_json",
"unwind-sys",
]
[[package]]
@ -8956,16 +8955,6 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "unwind-sys"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7a81ba64bc45243d442e9bb2a362f303df152b5078c56ce4a0dc7d813c8df91"
dependencies = [
"libc",
"pkg-config",
]
[[package]]
name = "url"
version = "2.5.3"