mirror of
https://github.com/loro-dev/loro.git
synced 2024-12-04 05:29:48 +00:00
923 B
923 B
loro-ffi
cargo build --release
- move
libloro.a
andloro_ffi.h
to directoryexamples/lib
- run
C++
Read more: cbindgen
g++ loro.cpp -Bstatic -framework Security -L. -lloro -o loro
Go
Read more: cgo
go run main.go
Python
Java
Candidates:
Panama
install panama-jdk and jextract
jextract -I /Library/Developer/CommandLineTools/usr/include/c++/v1 -I /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -d loro_java -t org.loro -l loro -- lib/loro_ffi.h
JNR
move libloro.dylib
into jnr/app
gradle run