package dune-build-info

  1. Overview
  2. Docs

Module Build_info.V1Source

Provide build-time information.

The entry points in this module are version and Statically_linked_libraries.to_list.

Implementation note: this module is implemented using special support from Dune. When an executable is linked, a special "blank" placeholder is stored as a string. A special post-link phase called artifact substitution can replace this placeholder with encoded data that will be decoded by this library.

Artifact substitution happens when an executable is installed or promoted to the source tree.

Sourcemodule Version : sig ... end

Version numbers.

Sourceval version : unit -> Version.t option

The version at which the current executable was built.

The version is None during development, it is only Some _ once artifact substitution happened.

Sourcemodule Statically_linked_library : sig ... end

A library with an optional version number.

Entry points to find Statically_linked_library values.

OCaml

Innovation. Community. Security.