Expand description
The JSON bridge for Go, Ruby and Java: the port is plain Rust over serde types, and one
dispatcher takes a function name and its arguments as JSON and answers
{"ok": value}, {"error": message} or {"panic": message}.
Go and Ruby reach the dispatcher through two C functions, rust_anything_call and
rust_anything_free; Java through one JNI method. The language side is a generated wrapper with
the original names and signatures, so callers do not change.
Functionsยง
- cargo_
toml - java_
native_ class - How a wrapper class or package names the JNI entry point:
rust-anything.<Lib>Native. - lib_rs