gear icon indicating copy to clipboard operation
gear copied to clipboard

WASM targets coverage

Open ark0f opened this issue 3 years ago • 0 comments

Problem to Solve

We don't have code coverage for WASM targets at the moment because wasm32-unknown-unknown target doesn't have profiler_builtins crate required for coverage instrumentation (I doubt it will do ever)

Possible Solution

Extract profiler_builtins crate from Rust sources, modify it for WASM specifity and then integrate it (sysroot, cargo patch feature, etc)

Notes

https://github.com/Amanieu/minicov is very close to that

cargo patch feature doesn't allow to patch such sysroot crates

ark0f avatar May 05 '22 10:05 ark0f