package ppx_blob

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

Install

Authors

Maintainers

Sources

ppx_blob-0.7.2.tbz
sha256=bcb9dcab18a3b40b5d6d9656575001c6379abf29461aa87d9263d25b59f80a02
sha512=d1701f640ce3dda2e2f0dce7d3f4a6b33ddfdaf793a9beab73e4f9ac93b2912adb7bb3b7fd1800bab258302aef0f0cdefb1e20ee62e6d882b25f0a64eae390a3

Description

ppx_blob allows you 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.

Published: 24 Nov 2020

Dependencies (3)

  1. ppxlib
  2. dune
  3. ocaml

Dev Dependencies (1)

  1. alcotest with-test

Conflicts

None