Unit\_info.Artifact(3) OCaml library Unit\_info.Artifact(3)

# [NAME](#NAME)

Unit\_info.Artifact - Build artifacts

# [Module](#Module)

Module Unit\_info.Artifact

# [Documentation](#Documentation)

Module **Artifact**  
: **sig end**

## [Build artifacts](#Build_artifacts)

*type t*

Metadata for a single compilation artifact:

-the module name associated to the artifact

-the filesystem path

-the input source file if it exists

*val source\_file* : **t -&gt; Unit\_info.filename option**

**source\_file a** is the source file of **a** if it exists.

*val prefix* : **t -&gt; Unit\_info.file\_prefix**

**prefix a** is the filename prefix of the compilation artifact.

*val filename* : **t -&gt; Unit\_info.filename**

**filename u** is the filesystem path for a compilation artifact.

*val modname* : **t -&gt; Unit\_info.modname**

**modname a** is the module name of the compilation artifact.

*val from\_filename* : **Unit\_info.filename -&gt; t**

**from\_filename filename** reconstructs the module name **lax\_modname\_from\_source filename** associated to the artifact **filename** .

2026-10-01 OCamldoc

---

Document: Unit_info.Artifact(3o) from ocaml 5.5.1-r1 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
