diff --git a/doc/dune-files.rst b/doc/dune-files.rst index f951cdd9522..683d6e32981 100644 --- a/doc/dune-files.rst +++ b/doc/dune-files.rst @@ -327,6 +327,12 @@ OCaml/Reason modules only consume modules from the directory where the stanza appear. In order to declare a multi-directory library, you need to use the :ref:`include_subdirs` stanza. +Note also that a nested library in a project is not automatically namespaced +under its parent library. E.g. if you have a public library ``foo`` which nests +another public library ``bar``, it will not be exposed as ``Foo.Bar`` outside +the project, but as ``Bar``. Take care to give unique names to nested libraries +to avoid conflicts. E.g., ``foo__Bar``. + ```` are: - ``(public_name )`` this is the name under which the library can be