You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
digestif is an example of a library that affords multiple implementations. To use it one must depend on both digestif and either digestif.c or digestif.ocaml
We should be able to reduce this to a dependency on digestif and a build/config setting that automatically selects the implementation. This should work with the new "nocamlfind" version that generates BUILD.bazel files for opam libs. The following is currently generated for digestif
in the case of digestif, we can define build settings in the package, so e.g. the user can select an implementation by passing one of --@opam//lib/digestif:c or --@opam//lib/digestif:ocaml. default could be c, so the option would only be needed to switch to the ocaml impl.
digestif
is an example of a library that affords multiple implementations. To use it one must depend on bothdigestif
and eitherdigestif.c
ordigestif.ocaml
We should be able to reduce this to a dependency on
digestif
and a build/config setting that automatically selects the implementation. This should work with the new "nocamlfind" version that generates BUILD.bazel files for opam libs. The following is currently generated fordigestif
The idea is that we can add a select to the
deps
attribute to makedigestif
depend on an implementation, something like:Here
:foo
and:bar
could be platform constraints, for example.The text was updated successfully, but these errors were encountered: