This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Description
Motivation
std::panicking::panicking() is a simple function that checks to see if the current thread is panicking. Looking at the wasm-snip source code, it appears that this will be targeted by this pattern when --snip-rust-panicking-code is used:
options.patterns.push(r#".*std\.\.panicking\.\..*"#.into());
It is unfortunate because this function is called by std::thread::panicking(); a function extensively used by tokio
Proposed Solution
Omit this particular function from the patterns, or somehow snip this particular function to always return false