grcov icon indicating copy to clipboard operation
grcov copied to clipboard

Clarify handling proc-macro panicking

Open SOF3 opened this issue 3 years ago • 1 comments

The RUSTFLAGS provided in the README does not work with proc-macro crates because compiling procedural macros requires the panic_unwind runtime. We would get this error instead:

error: the linked panic runtime `panic_unwind` is not compiled with this crate's panic strategy `abort`

It would be useful to document in the README what is suggested to be done in the case of workspaces with procedural macros. For example, are users advised to override the panic strategy through a certain cfg filter in Cargo.toml? Or are there other suggested tricks?

SOF3 avatar Nov 27 '21 01:11 SOF3

Running into the same problem here, any updates?

MichaelScofield avatar Sep 13 '22 02:09 MichaelScofield