jni-rs-bindings
БесплатноБез исполняемых скриптовНе проверенjni-rs for exposing a Rust core to the JVM: export naming, JNIEnv usage, string conversion, exception checks and throws, global references, library loading…
от Goldziher★ 182 звезды на GitHubОб этом скилле
- Use
jnicrate for Rust-Java/JVM interop. Functions must be#[no_mangle] pub extern "system". - Follow JNI naming:
Java_com_example_ClassName_methodName. Match Java native method signatures exactly. - Use
JNIEnvfor all JNI operations. Access Java types viaJObject,JString,JClasswrappers. - String conversion:
env.get_string(&jstring)to read,env.new_string("value")to create. - Error handling: check
env.exception_check()after JNI calls. Throw Java exceptions viaenv.throw_new(). - Global references (
env.new_global_ref()) for objects accessed across threads or native calls. - Build with
cargo build --releaseto produce shared library. Load in Java withSystem.loadLibrary(). - Test Java side with JUnit, Rust core logic with standard
#[test]. Integration tests via JNI calls. - Keep JNI layer thin — business logic in Rust, Java provides API surface.
- Memory: JNI local references are auto-freed on native return. Use
env.delete_local_ref()in loops. - Anti-patterns: holding JNI references across threads without global refs, ignoring exception checks,
unwrap()in JNI functions.
Установить jni-rs-bindings в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл jni-rs-bindings?
jni-rs for exposing a Rust core to the JVM: export naming, JNIEnv usage, string conversion, exception checks and throws, global references, library loading. Use when writing or reviewing JNI bindings.
Как установить скилл jni-rs-bindings?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл jni-rs-bindings запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic