docs.rs failed to build abort_on_panic-0.0.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
abort_on_panic-2.0.0
When calling Rust code from C, it's unsafe to call panic!
. Doing so may
cause unsafe behavior. But when calling user-defined functions, we
sometimes need to enforce these rules.
To use this library, add the following to your Cargo.toml
file:
[dependencies]
abort_on_panic = "*"
You can than capture a panic!
as follows:
extern crate abort_on_panic;
Credits & license
The original idea for this code came from Benjamin Herr. Many thanks!
This code is placed into the public domain under the terms described by the Unlicense.