File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
doc/reference/dune-project Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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+
111122Adding libraries to different packages is done via the ``public_name `` and
112123``package `` fields. See :doc: `../dune/library ` section for details.
113124
You can’t perform that action at this time.
0 commit comments