Bazel rules for OCaml Last updated Feb 11, 2025

Table of Contents

Basic tasks: compile, archive, link.

Extended tasks: namespacing; ppx and other preprocessing; installation; packaging for distribution

Other: opam integration and deployment

Related tasks: deriving interfaces from .ml files; ocamlobjinfo; -bin-annot; odoc; etc.

Primitives

  • ocaml_signature

    • with support for namespacing

  • ocaml_module

    • with support for namespacing

  • ocaml_ns

  • ocaml_library

    • with support for archiving

  • ocaml_import

Extensions

  • rules_ppx