Skip to content

Commit

Permalink
Compatible with mirage+dune
Browse files Browse the repository at this point in the history
  • Loading branch information
dinosaure committed Jul 11, 2019
1 parent e6c1ed0 commit 83387a3
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion digestif.opam
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ depends: [
"dune" {build & >= "1.9.2"}
"eqaf"
"base-bytes"
"base-bigarray"
"bigarray-compat"
"fmt" {with-test}
"alcotest" {with-test}
]
Expand Down
2 changes: 1 addition & 1 deletion src-c/digestif.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
(char, Bigarray_compat.int8_unsigned_elt, Bigarray_compat.c_layout) Bigarray_compat.Array1.t

type 'a iter = ('a -> unit) -> unit
type 'a compare = 'a -> 'a -> int
Expand Down
2 changes: 1 addition & 1 deletion src-c/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(name digestif_c)
(public_name digestif.c)
(implements digestif)
(libraries bigarray eqaf digestif.rakia)
(libraries bigarray-compat eqaf digestif.rakia)
(private_modules digestif_native
digestif_hash
digestif_eq
Expand Down
2 changes: 1 addition & 1 deletion src-c/native/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
(name rakia)
(public_name digestif.rakia)
(c_names blake2b blake2s md5 ripemd160 sha1 sha256 sha512 whirlpool misc stubs)
(c_flags (-I.)))
(c_flags (:standard -I.)))
2 changes: 1 addition & 1 deletion src-ocaml/digestif.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
(char, Bigarray_compat.int8_unsigned_elt, Bigarray_compat.c_layout) Bigarray_compat.Array1.t

type 'a iter = ('a -> unit) -> unit
type 'a compare = 'a -> 'a -> int
Expand Down
2 changes: 1 addition & 1 deletion src-ocaml/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(name digestif_ocaml)
(public_name digestif.ocaml)
(implements digestif)
(libraries bigarray eqaf)
(libraries bigarray-compat eqaf)
(private_modules xor
digestif_hash
digestif_eq
Expand Down
2 changes: 1 addition & 1 deletion src/digestif.mli
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
(char, Bigarray_compat.int8_unsigned_elt, Bigarray_compat.c_layout) Bigarray_compat.Array1.t

(** A general (inner) iterator. It applies the provided function to a
collection of elements. For instance:
Expand Down
2 changes: 1 addition & 1 deletion src/digestif_bi.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open Bigarray
open Bigarray_compat

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

Expand Down
2 changes: 1 addition & 1 deletion src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
(wrapped false)
(virtual_modules digestif)
(default_implementation digestif.c)
(libraries eqaf))
(libraries eqaf bigarray-compat))

0 comments on commit 83387a3

Please sign in to comment.