This is liable to change in the future.
A ocaml_library() rule builds a native and a bytecode libraries from the supplied set of OCaml source files and dependencies.
Note: Buck is currently tested with 4.X OCaml series.
The name of the rule.
The set of dependencies of this rule. It could include references to ocaml_library and cxx_library rules.
The set of additional compiler flags to pass to ocaml compiler. It supports specifying ppx (see for example).
List of build targets that identify tests that exercise this target.
List of build target patterns that identify the build rules that can include this rule as a dependency, for example, by listing it in their
exported_depsattributes. For more information, see visibility.
For more examples, check out our integration tests.
ocaml_library( name='greeting', srcs=[ 'greeting.ml', ], deps=[ ':join', ], )