package crunch
Convert a filesystem into a static OCaml module
Install
Dune Dependency
Authors
Maintainers
Sources
crunch-3.3.1.tbz
sha256=2c5ba0d4110bcbb7731cba4eafb6c44a7487c3f88c1ad47401271b69ffa8ed6a
sha512=5aaa1b67456dd2f5e3ab450ea547e62fba2b0341a49f3b24669162dce91b6ea1158c1594d60c6df3e416e719484411c50ae61017c40b2f75ee90401aa543bd08
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.
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 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 [--ext=VALID EXTENSION] [--mode=MODE] [--output=OUTPUT]
[OPTION]… DIRECTORIES…
ARGUMENTS
DIRECTORIES (required)
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.
-m MODE, --mode=MODE (absent=lwt)
Interface access mode: either lwt or plain. lwt is the default.
-o OUTPUT, --output=OUTPUT
Output file for the OCaml module.
-s, --silent
Silent mode.
COMMON OPTIONS
--help[=FMT] (default=auto)
Show this help in format FMT. The value FMT must be one of auto,
pager, groff or plain. With auto, the format is pager or plain
whenever the TERM env var is dumb or undefined.
--version
Show version information.
EXIT STATUS
ocaml-crunch exits with the following status:
0 on success.
123 on indiscriminate errors reported on standard error.
124 on command line parsing errors.
125 on unexpected internal errors (bugs).
ENVIRONMENT
These environment variables affect the execution of ocaml-crunch:
SOURCE_DATE_EPOCH
Specifies the last modification of crunched files for reproducible
output.
BUGS
Email bug reports to <mirage-devel@lists.xenproject.org>.
Dev Dependencies (4)
-
fmt
with-test
-
mirage-kv-mem
with-test & >= "3.0.0"
-
mirage-kv
with-test & >= "3.0.0"
-
lwt
with-test
Used by (30)
-
abella
>= "2.0.8"
- autofonce_share
-
biotk
>= "0.1.0"
- cairn
-
catala
>= "0.9.0"
-
current_web
>= "0.6.1"
-
datakit-ci
< "0.12.0" | >= "0.12.3"
- dkml-install-installer
- dkml-package-console
- dkml-workflows
-
dream
>= "1.0.0~alpha2"
-
drom_lib
>= "0.8.0"
- eris
- graphql-cohttp
-
graphql-lwt
>= "0.3.0" & < "0.8.0"
- iocaml
-
irmin
>= "0.8.1" & < "0.12.0"
- irmin-http
- MlFront_Cli
- mirage-seal
-
obuilder
>= "0.6.0"
-
odoc
>= "2.2.0"
- opium-graphql
- osh
-
owi
>= "0.2"
- pds
- queenshead
- slipshow
-
spin
>= "0.6.0"
-
stone
>= "0.4.0"
Conflicts (1)
-
mirage-kv
< "3.0.0"
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page