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

Unable to use panic = "abort" when using the library #245

Open
jakubDoka opened this issue Nov 12, 2024 · 0 comments
Open

Unable to use panic = "abort" when using the library #245

jakubDoka opened this issue Nov 12, 2024 · 0 comments

Comments

@jakubDoka
Copy link

Hello,

I was trying to reduce my application's binary size, which depends on this library. I am unable to use panic = "abort in my release profile because the library declares:

crate-type = ["staticlib", "dylib", "rlib"]

The compilation error:

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

error: could not compile `sev` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

If I clone and remove the mentioned configuration, I can compile it.

I would like to know why the crate has this configuration and whether it could be removed or optionally disabled. My application is not using unwinding and it would save 500kb (9%)

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