Skip to content

Commit 2346113

Browse files
authored
Merge pull request #12691 from Alizter/push-xvxvlytvxlnr
doc: (finally) add allow_empty to docs
2 parents 6e1be47 + 9eeb3ce commit 2346113

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/reference/dune-project/package.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,17 @@ is used when generating OPAM files (see :doc:`generate_opam_files`).
108108
``(sites (<section> <name>) ...)`` defines a site named ``<name>`` in the
109109
section ``<section>``.
110110

111+
.. describe:: (allow_empty)
112+
113+
.. versionadded:: 3.0
114+
115+
Allows packages that have no user-defined stanzas attached to them.
116+
117+
By default, starting from Dune 3.0, packages must contain at least one
118+
user-defined stanza (such as a ``library``, ``executable``, or
119+
``install`` stanza). If a package is intentionally empty, add
120+
``(allow_empty)`` to suppress the error.
121+
111122
Adding libraries to different packages is done via the ``public_name`` and
112123
``package`` fields. See :doc:`../dune/library` section for details.
113124

0 commit comments

Comments
 (0)