This crate exposes a deliberately small and stable surface area.
Public modules:
env- High-level safe wrappers (Jvmti,JniEnv,LocalRef,GlobalRef).sys- Raw FFI bindings for JNI and JVMTI.classfile- Class file parser with Java 8-27 attributes.prelude- Recommended imports for agent authors.embed- Feature-gated JVM embedding helpers.advanced- Feature-gated helpers (disabled by default).
Public items:
Agenttraitexport_agent!macroget_default_callbackshelperjnire-export (crate::sys::jni)describe_jni_resulthelperembed::{JavaVmBuilder, JavaVm, AttachedThread}when theembedfeature is enabled
Common high-level helpers:
Jvmti::set_default_agent_callbacksJvmti::add_*_capabilitiespresets for class hooks, method tracing, exceptions, and heap samplingJvmti::enable_*_eventspresets for common event groupsJvmti::configure_*_agentpresets for common agent workflowsjni::result_name,jni::describe_result, andjvmti::error_namediagnostics
Stability notes:
sysfollows the JVMTI/JNI C headers and may grow with new JDK versions.envis the recommended API for most users and aims for stability.embedis feature-gated but intended for stable JVM embedding workflows.advancedAPIs can change faster and are feature-gated.