---
name: "Unit_info.Artifact"
section: "3o"
platform: "linux"
package: "ocaml"
version: "5.5.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Unit_info.Artifact"
---

# Unit\_info.Artifact(3o)

Build artifacts

## NAME

Unit\_info.Artifact -  Build artifacts

## Module

Module   Unit\_info.Artifact

## Documentation

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

### 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 -\> Unit\_info.filename option**

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

*val prefix* :  **t -\> Unit\_info.file\_prefix**

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

*val filename* :  **t -\> Unit\_info.filename**

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

*val modname* :  **t -\> Unit\_info.modname**

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

*val from\_filename* :  **Unit\_info.filename -\> t**

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