# Bazel build rules \`daml()\` and \`daml\_binary()\` documented but not implemented?

**URL:** <https://forum.canton.network/t/bazel-build-rules-daml-and-daml-binary-documented-but-not-implemented/3836>\
**Category:** App Development\
**Created:** [February 2, 2022, 2:48am UTC](https://forum.canton.network/t/bazel-build-rules-daml-and-daml-binary-documented-but-not-implemented/3836 "2022-02-02T02:48:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mesch](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/mesch/32/3248_2.png) [@mesch](https://forum.canton.network/u/mesch)\
**Post date:** [February 2, 2022, 2:48am UTC](https://forum.canton.network/t/bazel-build-rules-daml-and-daml-binary-documented-but-not-implemented/3836/1 "2022-02-02T02:48:00Z")

</div>

There is documentation about bazel build rules `daml()` and `daml_binary()` here: [BAZEL.md#daml-packages](https://github.com/digital-asset/daml/blob/5390505627d89a5a56e42ba237b08504123f325e/BAZEL.md#daml-packages) and here: [BAZEL.md#daml-executables](https://github.com/digital-asset/daml/blob/5390505627d89a5a56e42ba237b08504123f325e/BAZEL.md#daml-executables).

The documentation mentions [//rules\_daml:daml.bzl](https://github.com/digital-asset/daml/blob/5390505627d89a5a56e42ba237b08504123f325e/rules_daml/daml.bzl) as the implementation, however that file `//rules_daml:daml.bzl` doesn’t contain definitions of said bazel build rules.

Do these rules exist anywhere else?

Thanks a lot,  
mesch.

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [February 2, 2022, 7:18am UTC](https://forum.canton.network/t/bazel-build-rules-daml-and-daml-binary-documented-but-not-implemented/3836/2 "2022-02-02T07:18:26Z")

</div>

Hi @mesch, the documentation here is a bit out of date. You probably want `daml_compile` or `daml_build_test` instead. Keep in mind though that these rules are not written for external consumption and only intended for use within the `daml` repo.

---

<div class="post-metadata">

**Author:** ![mesch](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/mesch/32/3248_2.png) [@mesch](https://forum.canton.network/u/mesch)\
**Post date:** [February 2, 2022, 3:07pm UTC](https://forum.canton.network/t/bazel-build-rules-daml-and-daml-binary-documented-but-not-implemented/3836/3 "2022-02-02T15:07:39Z")

</div>

Thanks a lot!

To use the daml SDK in my own bazel build, is there a recommended way to do that?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [February 2, 2022, 3:08pm UTC](https://forum.canton.network/t/bazel-build-rules-daml-and-daml-binary-documented-but-not-implemented/3836/4 "2022-02-02T15:08:50Z")

</div>

Unfortunately, we do not provide examples or recommendations for now. You’ll have to write your own rulesets.

---

<div class="post-metadata">

**Author:** ![mesch](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/mesch/32/3248_2.png) [@mesch](https://forum.canton.network/u/mesch)\
**Post date:** [February 2, 2022, 3:11pm UTC](https://forum.canton.network/t/bazel-build-rules-daml-and-daml-binary-documented-but-not-implemented/3836/5 "2022-02-02T15:11:03Z")

</div>

Good to know, we can do that. Thanks again!
