package ppx_blob

  1. Overview
  2. Docs
Include a file as a string at compile time

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_blob-0.3.0.tbz
sha256=581c50d81243a09e61ff76fcf38e2530cb229a03fbfaef6fd0062f89c20d84e5
md5=3f4dce7c3117792fa5b5a7e09c734ec0

README.md.html

ppx_blob

OCaml ppx to include a binary blob from a file as a string. Writing [%blob "filename"] will replace the string with the contents of the file at compile time. This allows the inclusion of arbitary, possibly compressed, data, without the need to respect OCaml's lexical conventions.

To build

Requires OCaml 4.02 or above.

Run make in the top directory. Then run make in the examples directory. Now run the quine executable.

To install

Run make install in the top directory once make has been run.

OCaml

Innovation. Community. Security.