Commit 1acbc47
authored
Setup community edition (#22)
There are two editions of Couchbase Lite C: `enterprise` and
`community`.
In Doctolib we only use the `enterprise` version, but in order to
release this crate on [crates.io](https://crates.io/) it would be
beneficial to offer both options. This is the goal of this pull request.
The main changes of this pull request are:
1. Two new features in Cargo.toml: `enterprise` & `community`. Exactly
one must be selected or the compilation will fail in `build.rs`.
2. All the functionalities that are not available in the `community`
edition (encryption & peer-to-peer) are hidden behind the `enterpise`
feature.
3. Instead of the `libcblite` folder containing the enterprise lib
files, there are now two folders: `libcblite_enterprise` &
`libcblite_community`.
4. The file `build.rs` is modified in order to link with the right
folder depending on the specified edition.
5. The script `update_cblite_c.sh` is enhanced to run the whole process
for both editions.
Some smaller changes are also added:
1. A custom pre-commit hook is added to check that both editions build.
2. The GH workflow `rust` is split in two worflows: `build` & `test`.
3. The three workflows `build`, `test` & `clippy` now use matrixes to
check both editions.
4. The `c_playground` is modified with the new path of the `enterprise`
lib files.1 parent 9d4d45a commit 1acbc47
File tree
322 files changed
+51987
-228
lines changed- .cargo-husky/hooks
- .github/workflows
- c_playground
- libcblite_community
- include
- cbl++
- cbl
- fleece
- lib
- aarch64-linux-android
- arm-linux-androideabi
- i686-linux-android
- ios/CouchbaseLite.xcframework
- ios-arm64_x86_64-simulator
- CouchbaseLite.framework
- Headers
- Modules
- dSYMs/CouchbaseLite.framework.dSYM/Contents
- Resources/DWARF
- ios-arm64
- CouchbaseLite.framework
- Headers
- Modules
- dSYMs/CouchbaseLite.framework.dSYM/Contents
- Resources/DWARF
- macos
- x86_64-linux-android
- x86_64-pc-windows-gnu
- x86_64-unknown-linux-gnu
- libcblite_enterprise
- include
- cbl++
- cbl
- fleece
- lib
- aarch64-linux-android
- arm-linux-androideabi
- i686-linux-android
- ios/CouchbaseLite.xcframework
- ios-arm64_x86_64-simulator
- CouchbaseLite.framework
- Headers
- Modules
- dSYMs/CouchbaseLite.framework.dSYM/Contents
- Resources/DWARF
- ios-arm64
- CouchbaseLite.framework
- Headers
- Modules
- dSYMs/CouchbaseLite.framework.dSYM/Contents
- Resources/DWARF
- macos
- x86_64-linux-android
- x86_64-pc-windows-gnu
- x86_64-unknown-linux-gnu
- src
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
322 files changed
+51987
-228
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | | - | |
| 21 | + | |
| 22 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 1 | | |
| 2 | + | |
15 | 3 | | |
16 | 4 | | |
17 | 5 | | |
18 | 6 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
25 | 13 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | | - | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
35 | | - | |
36 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
0 commit comments