Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Clarify handling proc-macro panicking #137

Open
SOF3 opened this issue Nov 27, 2021 · 1 comment
Open

Clarify handling proc-macro panicking #137

SOF3 opened this issue Nov 27, 2021 · 1 comment

Comments

@SOF3
Copy link

SOF3 commented Nov 27, 2021

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?

@MichaelScofield
Copy link

Running into the same problem here, any updates?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants