-
Notifications
You must be signed in to change notification settings - Fork 1
/
ezgzip.opam
51 lines (46 loc) · 1.52 KB
/
ezgzip.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
opam-version: "2.0"
maintainer: "Hezekiah M. Carty <[email protected]>"
authors: [ "Hezekiah M. Carty <[email protected]>" ]
license: "MIT"
synopsis: "Simple gzip (de)compression library"
description: """
# ezgzip - Simple gzip (de)compression library
ezgzip is a simple interface focused on `string -> string` zlib and gzip
(de)compression.
Documentation is available
[here](https://hcarty.github.io/ezgzip/ezgzip/index.html).
An example illustrating how to gzip compress and then decompress a string:
```ocaml
open Rresult
let () =
let original = "Hello world" in
let compressed = Ezgzip.compress original in
let decompressed = R.get_ok (Ezgzip.decompress compressed) in
assert (original = decompressed)
```
This library currently uses the zlib bindings provided by
[camlzip](https://github.com/xavierleroy/camlzip). The gzip header/footer code
is based on the
[upstream specification](http://www.gzip.org/zlib/rfc-gzip.html#specification).
"""
homepage: "https://github.com/hcarty/ezgzip"
dev-repo: "git+https://github.com/hcarty/ezgzip.git"
bug-reports: "https://github.com/hcarty/ezgzip/issues"
doc: "https://hcarty.github.io/ezgzip/ezgzip/"
build: [
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
["dune" "build" "-p" name "-j" jobs] {with-doc}
]
depends: [
"alcotest" {with-test & >= "0.8.1"}
"astring"
"benchmark" {with-test & >= "1.4"}
"dune" {>= "1.0"}
"ocplib-endian"
"odoc" {with-doc & >= "1.1.1"}
"qcheck" {with-test & >= "0.7"}
"rresult"
"camlzip"
"ocaml" {>= "4.03.0"}
]