xref: /freebsd/contrib/libcbor/examples/bazel/README.md (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
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