rust-panic-safety
CommunityEnsure Rust-JNI boundaries are panic-proof.
Authorpo4yka
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Rust panics crossing JNI boundaries cause undefined behaviour. This Skill provides a uniform pattern to intercept panics, convert them to Java exceptions, and prevent JVM crashes.
Core Features & Use Cases
- Unified panic handling: wraps JNI_OnLoad and per-method entry points to catch panics and translate them into Java exceptions with meaningful messages.
- Stable JNI boundaries: enforces a consistent pattern (catch_unwind, EnvUnowned, and with_env/into_outcome) to isolate failures and maintain JVM stability.
- Guidance for Rust errors: promotes typed error propagation instead of leaking panics, improving debuggability and resilience.
Quick Start
Wrap every JNI entry point using EnvUnowned + into_outcome to safely translate panics into Java exceptions.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rust-panic-safety Download link: https://github.com/po4yka/RIPDPI/archive/main.zip#rust-panic-safety Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.