-
Notifications
You must be signed in to change notification settings - Fork 12
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
unwinding
dep features beneficial for no_std
#51
Comments
The unwinding crate provides "personality" and "panic-handler" features which define real `#[lang = eh_personality]` and `#[panic_handler]` implementations that support unwinding. This follows the suggestion in sunfishcode/eyra#51.
The unwinding crate provides "personality" and "panic-handler" features which define real `#[lang = eh_personality]` and `#[panic_handler]` implementations that support unwinding. This follows the suggestion in sunfishcode/eyra#51.
I've now released eyra 0.19, which has features "eh-personality" and "panic-handler", which enable the unwinding crate's personality function and panic handler, respectively. And "eh-personality-continue" and "panic-handler-trap" to have eyra provide stub implementations which can be useful if you know your code never unwinds or traps. |
Sorry for the delay in response, I haven't had time to come back and try the improvements out yet 😓
The documentation you added for these refer to Since the nbdd0121/unwinding#39 (comment) The crate maintainer states that |
I'm documenting this separately from my older issue comment that briefly mentioned the topic:
eh_personality
orno_std
(in addition to the global allocator) and the related attributes when adaptingno_std
for Eyra.no_std
examples regardingpanic_handler
, so if this were to be resolved as additional Eyra features this might be a separate one fromeh_personality
.The current
no_std
example:Could presumably be simplified to:
It's unclear to me if that is a customization a user can presently do via their
Cargo.toml
dependencies config, or if that clashes with thec-scape
dependency config shown below.Additional context
Extracted from: #27 (comment)
https://crates.io/crates/unwinding#personality-and-other-utilities
https://github.com/sunfishcode/c-ward/blob/aae71b8d3ce608a3ee3701b7646f345f1c649a27/c-scape/Cargo.toml#L45-L59
The text was updated successfully, but these errors were encountered: