update docs
parent
b208133388
commit
12e2677af6
@ -1,35 +0,0 @@
|
||||
# Building Cozo from source
|
||||
|
||||
You need to install the [Rust toolchain](https://www.rust-lang.org/tools/install) on your system.
|
||||
You also need a C++17 compiler.
|
||||
|
||||
Clone the Cozo git repo:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/cozodb/cozo.git --recursive
|
||||
```
|
||||
|
||||
You need to pass the `--recursive` flag so that submodules are also cloned.
|
||||
Next, run in the root of the cloned repo:
|
||||
|
||||
```bash
|
||||
cargo build --release
|
||||
```
|
||||
|
||||
Wait for potentially a long time, and you will find the compiled binary in `target/release`.
|
||||
|
||||
You can run `cargo build --release -F jemalloc` instead
|
||||
to indicate that you want to compile and use jemalloc as the memory allocator for the RocksDB storage backend,
|
||||
which can make a difference in performance depending on your workload.
|
||||
|
||||
To build the C library:
|
||||
|
||||
```bash
|
||||
cargo build --release --manifest-path=cozo-lib-c/Cargo.toml
|
||||
```
|
||||
|
||||
To build the Java library used by [cozo-lib-java](https://github.com/cozodb/cozo-lib-java):
|
||||
|
||||
```bash
|
||||
cargo build --release --manifest-path=cozo-lib-java/Cargo.toml
|
||||
```
|
@ -0,0 +1,16 @@
|
||||
# Cozo-lib-java
|
||||
|
||||
This crate provides the JNI bindings for using Cozo in Java/JVM languages/Android.
|
||||
|
||||
You do not use this crate directly. Instead, use:
|
||||
|
||||
* ... for Android
|
||||
* ... for Java or other JVM languages
|
||||
* ... for Clojure on JVM (you can also use the Java library, but this one is nicer)
|
||||
|
||||
## Building
|
||||
|
||||
With the Rust toolchain installed,
|
||||
```bash
|
||||
cargo build --release -p cozo_java -F compact -F storage-rocksdb
|
||||
```
|
@ -1,8 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cross build -p cozo_java --release --target=aarch64-linux-android
|
||||
cross build -p cozo_java --release --target=armv7-linux-androideabi
|
||||
cross build -p cozo_java --release --target=i686-linux-android
|
||||
cross build -p cozo_java --release --target=x86_64-linux-android
|
||||
cross build -p cozo_java --release -F storage-rocksdb --target=aarch64-unknown-linux-gnu
|
||||
cross build -p cozo_java --release -F storage-rocksdb --target=x86_64-unknown-linux-gnu
|
Loading…
Reference in New Issue