xref: /freebsd/contrib/libcbor/examples/bazel/README.md (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
1# Bazel Example
2
3This directory shows an example of using LibCbor in a project that builds with Bazel.
4
5## Compile
6
7To build the project:
8
9```shell
10bazel build src:all
11```
12
13## Test
14
15To test the code:
16
17```shell
18bazel test src:all
19```
20
21## Run
22
23To run the demo:
24
25```shell
26bazel run src:hello
27```
28
29or
30
31```shell
32bazel-bin/src/hello
33```
34