Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
115 lines (90 sloc) 2.81 KB
opam-version: "2.0"
name: "decompress"
maintainer: "Romain Calascibetta <>"
authors: "Romain Calascibetta <>"
homepage: ""
bug-reports: ""
dev-repo: "git+"
doc: ""
license: "MIT"
build: [
] {with-test & ocaml:version < "4.08.0"}
depends: [
"ocaml" {>= "4.03.0"}
"jbuilder" {build}
"camlzip" {with-test & >= "1.07"}
"re" {with-test & >= "1.7.2"}
"alcotest" {with-test}
synopsis: "Pure OCaml implementation of Zlib"
description: """
[![Build Status](](
Decompress is a pure implementation of `zlib`. The goal is to create an
available package for Mirage OS for `zlib` in OCaml (instead a C code).
We respect the interface of `zlib` and all flush mode is available
The interface proposed is a non-blocking interface.
## Installation
Decompress can be installed with `opam`:
opam install decompress
## Sample programs
Sample program are located in the `bin` directory of the distribution. It can be
built with (dependancy with Unix module, the `cmdliner` package and a C code):
ocamlbuild -use-ocamlfind bin/dpipe.native
Another good example is provided in `bin/` with the signature:
val compress : ?level:int -> string -> string
val uncompress : string -> string
And you can compile this program with:
ocamlbuild -use-ocamlfind bin/easy.native
But keep in your mind, it's an easy example and it's not optimized for a
productive environment - so, don't copy/paste and think.
The documentation is
available [online]( to
understand how to use Decompress.
## Build Requirements
* OCaml >= 4.03.0
* `base-bytes` meta-package
* Bigarray module (provided by the standard library of OCaml)
* `topkg`, `ocamlfind` and `ocamlbuild` to build the project
If you want to compile the test program, you need:
* `camlzip` to compare `decompress` with `zlib`
* `re.1.7.1`
* `alcotest`"""
url {
checksum: "md5=547eaf0803af3ed01ff7801facfe27e6"
You can’t perform that action at this time.