Skip to content

Commit

Permalink
remove stdlib-compat dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Apr 6, 2022
1 parent 687e799 commit 3d1adcc
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 32 deletions.
1 change: 0 additions & 1 deletion bindings/stubs/gen_decompress_bindings.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
open Ctypes
open Zl

let inflate i i_len o o_len =
let i = bigarray_of_ptr array1 i_len Bigarray.char i in
Expand Down
2 changes: 0 additions & 2 deletions decompress.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ run-test: [ "dune" "runtest" "-p" name "-j" jobs ]
depends: [
"ocaml" {>= "4.07.0"}
"dune" {>= "2.8.0"}
"base-bytes"
"bigarray-compat"
"cmdliner" {>= "1.1.0"}
"optint" {>= "0.1.0"}
"checkseum" {>= "0.2.0"}
Expand Down
2 changes: 0 additions & 2 deletions lib/de.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[@@@landmark "auto"]

module Bigarray = Bigarray_compat (* XXX(dinosaure): MirageOS compatibility. *)

type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t

Expand Down
3 changes: 0 additions & 3 deletions lib/de.mli
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
functions even if they are available. Others libraries like [Bigstringaf]
serve the same purpose of a much better way. *)

module Bigarray = Bigarray_compat
(** MirageOS compatibility. *)

type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
(** The type for [bigstring]. *)
Expand Down
13 changes: 6 additions & 7 deletions lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
(public_name decompress.de)
(modules de)
(ocamlopt_flags -O3 -unbox-closures -unbox-closures-factor 20)
(libraries optint checkseum bigarray-compat))
(libraries optint checkseum))

(library
(name lz)
(public_name decompress.lz)
(modules lz)
(ocamlopt_flags -O3 -unbox-closures -unbox-closures-factor 20)
(libraries optint checkseum bigarray-compat de))
(libraries optint checkseum de))

(library
(name rfc1951)
(public_name rfc1951)
(modules rfc1951)
(libraries optint checkseum bigarray-compat))
(libraries optint checkseum))

(rule
(deps de.ml)
Expand All @@ -28,19 +28,18 @@
(name zl)
(public_name decompress.zl)
(modules zl)
(libraries bigarray-compat optint checkseum de))
(libraries optint checkseum de))

(library
(name gz)
(public_name decompress.gz)
(modules gz)
(libraries bigarray-compat optint checkseum de))
(libraries optint checkseum de))

(library
(name lzo)
(public_name decompress.lzo)
(modules lzo)
(libraries bigarray-compat))
(modules lzo))

(alias
(name default)
Expand Down
2 changes: 0 additions & 2 deletions lib/gz.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ let io_buffer_size = 65536
let kstrf k fmt = Format.kasprintf k fmt
let invalid_arg fmt = Format.kasprintf invalid_arg fmt

module Bigarray = Bigarray_compat (* XXX(dinosaure): MirageOS compatibility. *)

type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t

Expand Down
3 changes: 0 additions & 3 deletions lib/gz.mli
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
non-blocking streaming codec to {{:#decode}decode} and {{:#encode}encode}
GZIP encoding. It can efficiently work payload by payload without blocking IO. *)

module Bigarray = Bigarray_compat
(** MirageOS compatibility. *)

type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
(** Type type for [bigstring]. *)
Expand Down
2 changes: 0 additions & 2 deletions lib/lz.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[@@@landmark "auto"]

module Bigarray = Bigarray_compat (* XXX(dinosaure): MirageOS compatibility. *)

type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t

Expand Down
2 changes: 0 additions & 2 deletions lib/lz.mli
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module Bigarray = Bigarray_compat

type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t

Expand Down
2 changes: 0 additions & 2 deletions lib/lzo.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module Bigarray = Bigarray_compat (* XXX(dinosaure): MirageOS compatibility. *)

type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t

Expand Down
2 changes: 0 additions & 2 deletions lib/zl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ let io_buffer_size = 65536
let kstrf k fmt = Format.kasprintf k fmt
let invalid_arg fmt = Format.kasprintf invalid_arg fmt

module Bigarray = Bigarray_compat

type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t

Expand Down
3 changes: 0 additions & 3 deletions lib/zl.mli
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
to {{:#decode}decode} and {{:#encode}encode} ZLIB encoding. It can
efficiently work payload by payload without blocking IO. *)

module Bigarray = Bigarray_compat
(** MirageOS compatibility. *)

type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
(** The type for [bigstring]. *)
Expand Down
1 change: 0 additions & 1 deletion rfc1951.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ depends: [
"ocaml" {>= "4.07.0"}
"dune" {>= "2.8"}
"decompress" {= version}
"bigarray-compat"
"checkseum"
"optint"
"ctypes" {with-test & >= "0.18.0"}
Expand Down

0 comments on commit 3d1adcc

Please sign in to comment.