File tree 3 files changed +41
-0
lines changed
3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1
1
/target /
2
2
Cargo.lock
3
+
4
+ .vscode
Original file line number Diff line number Diff line change
1
+ CMakeCache.txt
2
+ CMakeFiles
3
+ Makefile
4
+ cmake_install.cmake
5
+
6
+ Main
Original file line number Diff line number Diff line change
1
+ ## Purpose of the c_playground
2
+
3
+ Couchbase does not provide support for Rust bindings, so we cannot communicate code from this repo in support tickets.
4
+
5
+ With the c_playground, you can code whatever you want in C with full access to the couchbase-lite-C API.
6
+
7
+ ## How to use it
8
+
9
+ The code in main.c will be compiled.
10
+
11
+ In the c_payground repository, you need to run the command once:
12
+
13
+ ```
14
+ cmake CMakeLists.txt
15
+ ```
16
+
17
+ You will then be able to compile the code anytime you want with the command:
18
+
19
+ ```
20
+ make
21
+ ```
22
+
23
+ The file Main is the executable, do not forget to set the execution right for yourself:
24
+
25
+ ```
26
+ chmod u+x ./Main
27
+ ```
28
+
29
+ Execute your code:
30
+
31
+ ```
32
+ ./Main
33
+ ```
You can’t perform that action at this time.
0 commit comments