package ppx_blob
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=2650f99e7ae27074b9a748f50dd36084147816a352bfe657f0f0375ec3a4baf6
md5=b952544785ab6236bb099740d522cc3d
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: 10 Feb 2018
README
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.
The filename can be relative to either the source file where [%blob]
appears, or relative to the current working directory. If both files exist, the former takes precedence.
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.
Dependencies (3)
-
ocaml-migrate-parsetree
< "2.0.0"
-
jbuilder
>= "1.0+beta7"
- ocaml
Dev Dependencies (1)
-
alcotest
with-test
Used by (11)
-
electrod
< "0.1.6"
- hacl_x25519
- jsoo-react
-
ketrew
< "2.0.0"
-
key-parsers
>= "0.3.0" & < "0.8.1"
-
ogen
>= "0.1.2"
- passmaker
-
stog
>= "0.15.0" & < "0.19.0"
- u2f
- webauthn
- zanuda
Conflicts
None