Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Implement Panic-to-Exception Handling Mode on FFI Boundary (Seeking Feedback) #1326

Open
mikea opened this issue Mar 14, 2024 · 0 comments

Comments

@mikea
Copy link

mikea commented Mar 14, 2024

Thanks a bunch for all your hard work!

We're big fans of cxx, but we have one small wish: we'd love to see a different panic handling mode on the ffi boundary. Currently, it causes an abort (through unwind.rs), but we'd prefer a different behavior (controlled by a crate feature, of course): throwing a C++ exception instead. Our software is mission-critical, and we strive to minimize process crashes, preferring to handle issues at the thread level.

Just to clarify, we're not requesting this feature; I'm planning to implement it myself. I'm reaching out to see if this aligns with cxx's plans and if there's interest in reviewing and accepting corresponding pull requests in a reasonable timeline.

While we could fork and change cxx for our needs, we believe this feature could benefit others too. It would be great to have it upstream rather than maintaining a fork indefinitely.

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

No branches or pull requests

1 participant