MCPcopy Create free account
hub / github.com/bluejekyll/wasmtime-java / JNI_OnLoad

Function JNI_OnLoad

wasmtime-jni/src/wasmtime.rs:29–41  ·  view source on GitHub ↗
(_vm: JavaVM, _reserved: *mut c_void)

Source from the content-addressed store, hash-verified

27/// jint JNI_OnLoad(JavaVM *vm, void *reserved);
28#[no_mangle]
29pub extern "system" fn JNI_OnLoad(_vm: JavaVM, _reserved: *mut c_void) -> jint {
30 Logger::with_env_or_str("wasmtime=info,wasmtime-jni=info")
31 .log_to_file()
32 .directory("target/wasm-logs")
33 .format(opt_format)
34 .start()
35 .ok();
36
37 // env_logger::builder().target(Target::Stdout).init();
38
39 info!("wasmtime JNI loaded");
40 JNI_VERSION_1_8
41}
42
43/// /*
44/// * Class: net_bluejekyll_wasmtime_Wasmtime

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…