mirage/ocaml-crunch

Name: ocaml-crunch

Owner: MirageOS

Description: Convert a filesystem into a static OCaml module

Created: 2012-09-21 19:48:48.0

Updated: 2018-03-06 00:42:45.0

Pushed: 2017-11-25 03:24:50.0

Homepage: null

Size: 187

Language: OCaml

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

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:


   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.

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

MENTS
   DIRECTORIES
       Directories to recursively walk and crunch.

ONS
   -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.


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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.