package ppx_blob
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=f115e90a5f1075cedc9d930ab91271f8670ece4dee10dc1147ab39b8afb570e4
sha512=bad11f8ffbec82a04bb5f90e7548a7ad9ac4bf7e9b733815f6c956d7e0002fb258c52783ded847ab09fe3cd60e5eac2901fccaefd4fd4f885f20942d0ef66fea
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.
Added to opam-repository:
README
ppx_blob
This is an 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 arbitrary, 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.
Integration with build systems
Dune
Add (preprocessor_deps (file path/to/file)) to your library or executable stanza. See test/dune for an example. This will make sure the file is copied to the build directory and therefore visible to ppx_blob.
Development
Requirements:
- OCaml 4.08+
- Packages: see ppx_blob.opam.
Run make and make test.
Dev Dependencies (1)
-
alcotest
with-test
Optional Dependencies
None
Used by (26)
- activitypub
-
alt-ergo-lib
>= "2.5.1" - cabal
- chamo
-
goblint
>= "2.0.0" & < "2.2.1" | >= "2.5.0" - hacl_x25519
-
irmin-cli
>= "3.10.0" - irmin-server
- jsoo-react
- mazeppa
- memgraph_kitty
- miaou
- miaou-core
- miaou-driver-web
- passmaker
- sherlodoc
- slipshow
- solid_server
- soteria
- statocaml_community
- stk
- stk_xml
- stog
-
vsrocq-language-server
>= "2.5.0" - webauthn
- zanuda
Conflicts
None
Build status
Results of building ppx_blob with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.9.0 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure