From c968361722d21f72d3c2a1f9957d92a81ce46395 Mon Sep 17 00:00:00 2001 From: Alisa Sireneva Date: Fri, 17 Jan 2025 11:44:28 +0300 Subject: [PATCH] Add new Emscripten EH to the supported target list --- src/lib.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c00246f..f37cd82 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -32,13 +32,14 @@ //! //! On nightly Rust, Lithium uses a custom mechanism on the following targets: //! -//! |Target |Implementation|Performance |`no_std` support| -//! |-------------------|--------------|---------------------------------------------|----------------| -//! |Linux, macOS |Itanium EH ABI|2.5x faster than panics |Yes | -//! |Windows (MSVC ABI) |SEH |1.5x faster than panics |Yes | -//! |Windows (GNU ABI) |Itanium EH ABI|2.5x faster than panics, but slower than MSVC|No | -//! |Emscripten |C++ exceptions|2x faster than panics |Yes | -//! |WASI |Itanium EH ABI|2.5x faster than panics |Yes | +//! |Target |Implementation |Performance |`no_std` support| +//! |-------------------|---------------|---------------------------------------------|----------------| +//! |Linux, macOS |Itanium EH ABI |2.5x faster than panics |Yes | +//! |Windows (MSVC ABI) |SEH |1.5x faster than panics |Yes | +//! |Windows (GNU ABI) |Itanium EH ABI |2.5x faster than panics, but slower than MSVC|No | +//! |Emscripten (old EH)|C++ exceptions |2x faster than panics |Yes | +//! |Emscripten (new EH)|Wasm exceptions|2.5x faster than panics |Yes | +//! |WASI |Itanium EH ABI |2.5x faster than panics |Yes | //! //! Lithium strives to support all targets that Rust panics support. If Lithium does not work //! correctly on such a target, please open an issue.