package crunch

  1. Overview
  2. Docs
Convert a filesystem into a static OCaml module

Install

Dune Dependency

Authors

Maintainers

Sources

crunch-v3.2.0.tbz
sha256=0a1a4ebb86ab643dd193b5c0046e4d168c6e1cb41e6e5e5b6fbd3b7492e8c6de
sha512=8666e4081c96b7e0820c621197cb02de2238ddc911e4e95f439c69a685a5791dd4f874ba1084f56c9b44d3d579b877b1ed1f7b0421cd56d3f36ad39c669ee4eb

Description

ocaml-crunch takes a directory of files and compiles them into a standalone OCaml module which serves the contents directly from memory. This can be convenient for libraries that need a few embedded files (such as a web server) and do not want to deal with all the trouble of file configuration.

Tags

org:mirage org:xapi-project

Published: 14 Dec 2019

README

ocaml-crunch -- convert a filesystem into a static OCaml module

ocaml-crunch takes a directory of files and compiles them into a standalone OCaml module which serves the contents directly from memory. This can be convenient for libraries that need a few embedded files (such as a web server) and do not want to deal with all the trouble of file configuration.

Run man ocaml-crunch or ocaml-crunch --help for more information:

NAME
       ocaml-crunch - Convert a directory structure into a standalone OCaml
       module that can serve the file contents without requiring an external
       filesystem to be present.

SYNOPSIS
       ocaml-crunch [OPTION]... DIRECTORIES...

ARGUMENTS
       DIRECTORIES
           Directories to recursively walk and crunch.

OPTIONS
       -e VALID EXTENSION, --ext=VALID EXTENSION
           If specified, only these extensions will be included in the
           crunched output. If not specified, then all files will be crunched
           into the output module.

       --help[=FMT] (default=pager)
           Show this help in format FMT (pager, plain or groff).

       -m MODE, --mode=MODE (absent=lwt)
           Interface access mode: 'lwt' or 'plain'. 'lwt' is the default.

       -o OUTPUT, --output=OUTPUT
           Output file for the OCaml module.

       --version
           Show version information.

BUGS
       Email bug reports to <mirage-devel@lists.xenproject.org>.

Dependencies (4)

  1. dune >= "1.0"
  2. ptime
  3. cmdliner
  4. ocaml >= "4.05.0"

Dev Dependencies (3)

  1. mirage-kv-mem with-test & >= "3.0.0"
  2. mirage-kv with-test & >= "3.0.0"
  3. lwt with-test

Used by (25)

  1. autofonce_share
  2. biotk >= "0.1.0"
  3. cairn
  4. catala >= "0.9.0"
  5. current_web >= "0.6.1" & < "0.6.4"
  6. datakit-ci < "0.12.0" | >= "0.12.3"
  7. dkml-install-installer < "0.4.0"
  8. dkml-package-console < "0.4.0"
  9. dkml-workflows < "1.2.0"
  10. dream >= "1.0.0~alpha2"
  11. drom_lib >= "0.8.0"
  12. eris
  13. graphql-cohttp
  14. graphql-lwt >= "0.3.0" & < "0.8.0"
  15. iocaml
  16. irmin >= "0.8.1" & < "0.12.0"
  17. irmin-http
  18. mirage-seal
  19. odoc >= "2.2.0"
  20. opium-graphql
  21. osh
  22. pds
  23. queenshead
  24. spin >= "0.6.0"
  25. stone >= "0.4.0"

Conflicts (1)

  1. mirage-kv < "3.0.0"