package dune-build-info

  1. Overview
  2. Docs
Embed build information inside executable

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dune-3.21.0.tbz
sha256=e76d4d89368a0a70025193aeaf4f7c5b54031dba3f59bf9d2af1971dc0eceddd
sha512=a7531de073a47f644bd1e06bfb424c50a61d34245e5e0a1f32d8da920437e8fe59246304cb7aec25f797a8dafea876feceeccfe5139502ead4d1ba5c45773ef3

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.