B0_ocaml.LibresolverLibrary resolvers.
module Scope : sig ... endResolution scopes.
make m ocaml_conf scopes is a library resolver looking for libraries in the given scopes, in order. ocaml_conf is the toolchain configuration. m gets marked by ocamlib.
val default : B0_store.t -> B0_memo.t -> t B0_std.Fut.tdefault store memo determines a default library resolver for key. It uses the Conf.key in store and uses a Scope.build with the build found in the store via B0_build.self followed by an Scope.ocamlfind in memo and a cache in the directory of the build.
val key : t B0_store.keyval lookups : t -> Lib.t option B0_std.Fut.t Libname.Map.tlookups r are the lookups performed in r so far.
val find : B0_memo.t -> t -> Libname.t -> Lib.t option B0_std.Fut.tfind m r libname finds library libname in r. m is used to report notifications.
val get : B0_memo.t -> t -> Libname.t -> Lib.t B0_std.Fut.tget m r libname gets library libname in r. The memo of r fails if the library cannot be found. m is used to report notication or failure.
val get_list_and_exports :
B0_memo.t ->
t ->
Libname.t list ->
Lib.t list B0_std.Fut.tget_list r libnames looks up libraries libnames in r and the libraries they B0_ocaml.exports. Libraries are returned in the given order and the memo of r fails if a library cannot be found.
val get_list_and_deps :
B0_memo.t ->
t ->
Libname.t list ->
Lib.t list B0_std.Fut.tget_list_and_deps b libnames looks up the libraires libnames and their dependencies in r. The result is a sorted in (stable) dependency order and the memo of r fails if a library cannot be found.