package odig

  1. Overview
  2. Docs

cmx files.

Cmx

type t = cmx

The type for cmx files.

val read : Fpath.t -> (cmx, [ `Msg of string ]) Pervasives.result

read f reads a cmx file from f.

val name : cmx -> string

name cmx is the name of the module implementation.

val digest : cmx -> digest

digest cmx is the digest of the implementation.

val cmi_digest : cmx -> digest

cmi_digest cmx is the digest of the module interface of the implementation.

val cmi_deps : cmx -> dep list

cmi_deps cmx is the list of imported module interfaces names with their digest, if known.

val cmx_deps : cmx -> dep list

cmx_deps cmx is the list of imported module implementations names with their digest, if known.

val cmxa : cmx -> cmxa option

cmxa cmx is an enclosing cmxa file (if any).

val path : cmx -> Fpath.t

path cmx is the file path to the cmx file. Note that this is a cmxa file if cmxa cmx is Some _.

Derived information

val to_cmi_dep : cmx -> dep

to_cmi_dep cmx is cmx as a cmi dependency.

OCaml

Innovation. Community. Security.