Skip to content

Commit dea3f42

Browse files
authored
Missing GitHub workflows (#3)
1 parent dc5c071 commit dea3f42

File tree

4 files changed

+57
-10
lines changed

4 files changed

+57
-10
lines changed

.github/workflows/clippy.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on: push
2+
name: Clippy check
3+
4+
env:
5+
CARGO_TERM_COLOR: always
6+
LIBCLANG_PATH: /usr/lib/llvm-14/lib/
7+
8+
jobs:
9+
clippy_check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- run: rustup component add clippy
14+
- uses: actions-rs/clippy-check@v1
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
name: Clippy default

.github/workflows/rust.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Rust
2+
3+
4+
on:
5+
push:
6+
pull_request:
7+
types: [opened, labeled, unlabeled, synchronize]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
LIBCLANG_PATH: /usr/lib/llvm-14/lib/
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-22.04
16+
steps:
17+
- name: Install apt-get
18+
run: sudo apt-get install -y clang llvm
19+
- name: List libs
20+
run: ls -l /usr/lib
21+
- name: Install latest nightly
22+
uses: dtolnay/rust-toolchain@v1
23+
with:
24+
toolchain: nightly
25+
components: rustfmt, clippy
26+
- uses: actions/checkout@v3
27+
- name: Build
28+
run: cargo build --verbose
29+
- name: Run tests
30+
run: cargo test --verbose
31+
- name: Run tests (with address sanitizer)
32+
run: LSAN_OPTIONS=suppressions=san.supp RUSTFLAGS="-Zsanitizer=address" cargo +nightly test --verbose

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "couchbase_lite"
3-
version = "0.2.1"
3+
version = "3.0.17-0"
4+
# The first three numbers correspond to the Couchbase Lite C release, the fourth number corresponds to the Doctolib release
45

56
[dependencies]
67
enum_primitive = "*"

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
# EXPERIMENTAL Rust Bindings For Couchbase Lite
1+
# Rust Bindings For Couchbase Lite
22

3-
This is a Rust API binding of [Couchbase Lite][CBL], an embedded NoSQL document database engine with sync.
3+
This is a Rust API of [Couchbase Lite][CBL], an embedded NoSQL document database engine with sync.
44

55
## Disclaimer
66

7-
> This library is **NOT SUPPORTED BY COUCHBASE**. Even if you are a Couchbase customer, our otherwise awesome support team cannot help you with using this library.
8-
9-
As of September 2021, this library is still incomplete and has been tested only partially and informally, mostly on one platform (macOS). Also the author is a novice Rustacean and may not be doing things the Rust Way.
10-
11-
That said, we would like to maintain and improve this library as time permits. We welcome bug reports, fixes and improvements!
7+
This library is **NOT SUPPORTED BY COUCHBASE**, it was forked from Couchbase Labs' repo [couchbase-lite-rust][CBL_RUST] and finalized.
8+
It is currently used and maintained by Doctolib.
9+
The supported platforms are Windows, macOS, Linux, Android and iOS.
1210

1311
## Building
1412

15-
**_"Some assembly required..."_**
16-
1713
### 1. Install LLVM/Clang
1814

1915
In addition to [Rust][RUST], you'll need to install LLVM and Clang, which are required by the
@@ -95,6 +91,7 @@ compatible bindings. For those APIs you can check out the document "[Using Fleec
9591
[RUST]: https://www.rust-lang.org
9692
[CBL]: https://www.couchbase.com/products/lite
9793
[CBL_C]: https://github.com/couchbase/couchbase-lite-C
94+
[CBL_RUST]: https://github.com/couchbaselabs/couchbase-lite-rust
9895
[CBLDOCS]: https://docs.couchbase.com/couchbase-lite/current/introduction.html
9996
[FLEECE]: https://github.com/couchbaselabs/fleece/wiki/Using-Fleece
10097
[BINDGEN]: https://rust-lang.github.io/rust-bindgen/

0 commit comments

Comments
 (0)