Skip to content

Commit 9152929

Browse files
committed
c_playground README & .gitignore update
1 parent 4da5c2d commit 9152929

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/target/
22
Cargo.lock
3+
4+
.vscode

c_playground/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CMakeCache.txt
2+
CMakeFiles
3+
Makefile
4+
cmake_install.cmake
5+
6+
Main

c_playground/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
```

0 commit comments

Comments
 (0)