feat: add java&rust
This commit is contained in:
14
__lang/java/java-demo/java/me/hatter/RustJNI.java
Normal file
14
__lang/java/java-demo/java/me/hatter/RustJNI.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package me.hatter;
|
||||
|
||||
public class RustJNI {
|
||||
static {
|
||||
System.loadLibrary("java_rust_demo");
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
init();
|
||||
}
|
||||
|
||||
static native void init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user