You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-33Lines changed: 41 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -2,52 +2,57 @@
2
2
3
3
This is a Rust API of [Couchbase Lite][CBL], an embedded NoSQL document database engine with sync.
4
4
5
+
The crate wraps the [couchbase-lite-C][CBL_C] releases with an idiomatic Rust API.
6
+
5
7
## Disclaimer
6
8
7
-
This library is **NOT SUPPORTED BY COUCHBASE**, it was forked from Couchbase Labs' repo [couchbase-lite-rust][CBL_RUST]
8
-
and finalized.
9
-
It is currently used and maintained by Doctolib.
9
+
This library is **NOT SUPPORTED BY COUCHBASE**, it was forked from Couchbase Labs' repo [couchbase-lite-rust][CBL_RUST] and finalized.
10
+
It is currently used and maintained by [Doctolib][DOCTOLIB] ([GitHub][DOCTOLIB_GH]).
11
+
10
12
The supported platforms are Windows, macOS, Linux, Android and iOS.
11
13
12
14
## Building
13
15
14
16
### 1. Install LLVM/Clang
15
17
16
-
In addition to [Rust][RUST], you'll need to install LLVM and Clang, which are required by the
17
-
[bindgen][BINDGEN] tool that generates Rust FFI APIs from C headers.
18
+
In addition to [Rust][RUST], you'll need to install LLVM and Clang, which are required by the [bindgen][BINDGEN] tool that generates Rust FFI APIs from C headers.
18
19
Installation instructions are [here][BINDGEN_INSTALL].
19
20
20
-
### 2. Couchbase Lite For C
21
+
### 2. Build!
22
+
23
+
```shell
24
+
$ cargo build
25
+
```
26
+
27
+
## Maintaining
28
+
29
+
### Couchbase Lite For C
21
30
22
31
The Couchbase Lite For C shared library and headers ([Git repo][CBL_C]) are already embedded in this repo.
23
-
To upgrade the version, start by replacing all the necessary files in the folder libcblite-3.0.3
32
+
They are present in the directory `libcblite`.
24
33
25
-
For Android there is an extra step: stripping the libraries.
26
-
Place your terminal to the root of this repo, then follow the instructions below.
34
+
### Upgrade Couchbase Lite C
27
35
28
-
### 2.1. Download
29
-
```shell
30
-
$ ./download.sh
31
-
```
36
+
The different releases can be found in [this page][CBL_DOWNLOAD_PAGE].
32
37
33
-
### 2.2 Strip
38
+
Running the following script will download and setup the libraries locally:
0 commit comments