Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

zshipko/libirmin

Repository files navigation

libirmin

irmin C library using ocaml-ctypes inverted stubs.

See irmin.h for available functions and types.

C bindings

  • IrminX values should be released using the corresponding irmin_X_free function.
  • The following types can safely be cast to IrminValue*/IrminContents:
    • IrminString
    • IrminCommit
    • IrminHash
    • IrminPath
    • IrminTree
    • IrminInfo

Compiling

To compile irmin.h and libirmin.so, run:

$ make

After that completes irmin.h can be found in include/ and libirmin.so will be in lib/

Installation

To install/uninstall irmin.h and libirmin.so:

$ opam install .
$ opam uninstall libirmin

irmin.h and libirmin.so will be copied to $OPAM_SWITCH_PREFIX/lib/libirmin/include and $OPAM_SWITCH_PREFIX/lib/libirmin/lib - this is where the Rust and Python bindings will check.

Running tests

Testing is handled by dune:

$ dune runtest

Usage

See README_LIBIRMIN

Rust bindings

See irmin-rs

Python bindings

See irmin-py

Releases

No releases published

Packages

No packages published

Languages