mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-22 21:07:43 +00:00
853 B
853 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