forked from mongodb/libbson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
57 lines (37 loc) · 954 Bytes
/
README
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# libbson
libbson is a library providing useful routines related to building, parsing,
and iterating BSON documents. It is a useful base for those wanting to write
high-performance C extensions to higher level languages such as python, ruby,
or perl.
# Building
## From Git
```sh
$ sudo yum install automake autoconf libtool make gcc
$ ./autogen.sh --enable-silent-rules
$ make
$ sudo make install
```
You can run the unit tests with
```sh
$ make test
```
## From Tarball
```sh
$ ./configure --enable-silent-rules
$ make
$ sudo make install
```
# Developing using libbson
In your source code:
```c
#include <bson.h>
```
To get the include path and libraries appropriate for your system.
```sh
gcc my_program.c $(pkg-config --cflags --libs libbson-1.0)
```
# Examples
See the `examples/` directory for how to use the libbson library in your
application.
# Documentation
See the `doc/` directory for documentation on individual types.