mirror of
https://github.com/loro-dev/loro.git
synced 2024-12-03 21:18:25 +00:00
1e736df133
* refactor: rm legacy code * chore: rm dead code * refactor: mv refactored files outside * refactor: rename files & methods * chore: rm unused deps * fix: compact bytes err * chore: fix ci |
||
---|---|---|
.. | ||
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