Prevent build error for packages that use the retired 'atdgen' library. The 'atdgen' package no longer provides an 'atdgen' library which was providing an 'Atdgen' module (it's been deprecated since 2018). The equivalent module is 'Atdgen_runtime'. Upgrade instructions:
- module level: if your source code references 'Atdgen', change it to
'Atdgen_runtime'.
- library level: in dune files and other build files, change references
to the 'atdgen' library to 'atdgen-runtime'.
- package level: [optional] in opam files or dune-project files used to
derive opam files, we recommend that you depend only on the 'atdgen'
package at build time and add a dependency on the 'atdgen-runtime'
package as follows. Here's the syntax for an opam file:
depends: [
...
"atdgen" {build}
"atdgen-runtime"
...
]
or with a version constraint:
depends: [
...
"atdgen" {build & = "123.456.789"}
"atdgen-runtime" {= "123.456.789"}
...
]
If the opam file is derived from a dune-project file, the syntax is:
(package
...
(depends
...
(atdgen :build)
atdgen-runtime
...
)
...
)
or with a version constraint:
(package
...
(depends
...
(atdgen (and :build (= 123.456.789)))
(atdgen-runtime (= 123.456.789))
...
)
...
)