mirror of
https://github.com/loro-dev/loro.git
synced 2024-11-28 09:25:36 +00:00
.. | ||
examples | ||
src | ||
.gitignore | ||
build.rs | ||
Cargo.toml | ||
cbindgen.toml | ||
README.md |
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