Module Local.Metadata_fileSource

A metadata file contains a list of files produced by a cached build rule, along with some metadata that can be empty.

One example of what can be included in the metadata field is a git commit at which the files were built, which makes it possible to exchange cache entries relevant to a specific commit between local and distributed caches.

Sourcetype t = {
  1. metadata : Stdune.Sexp.t list;
  2. files : Cache__.Cache_intf.File.t list;
}
Sourceval to_sexp : t -> Stdune.Sexp.t
Sourceval of_sexp : Stdune.Sexp.t -> (t, string) Stdune.result
Sourceval to_string : t -> string
Sourceval of_string : string -> (t, string) Stdune.result
Sourceval parse : Stdune.Path.t -> (t, string) Stdune.result