package dune-build-info

  1. Overview
  2. Docs
Embed build information inside executable

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dune-3.20.0.tbz
sha256=767999da81e528484139ecfe927288ffe521ac2467462a40d6a760ed789ba086
sha512=18f6a293cb5d4423a3bf69ce9559b40e7075e49b13c79166f2aacfa55cbc2609e20938bad889b43df0d5a3396ea034e405631d3757da6164c51be375e5751632

doc/dune-build-info/Build_info/V1/index.html

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.