diff --git a/bigstringaf.opam b/bigstringaf.opam index 89b096b..91e7445 100644 --- a/bigstringaf.opam +++ b/bigstringaf.opam @@ -13,7 +13,7 @@ build: [ depends: [ "dune" {build} "alcotest" {with-test} - "base-bigarray" + "bigarray-compat" "ocaml" {>= "4.03.0"} ] depopts: [ diff --git a/lib/bigstringaf.ml b/lib/bigstringaf.ml index cab76a0..ed0fe0b 100644 --- a/lib/bigstringaf.ml +++ b/lib/bigstringaf.ml @@ -1,12 +1,12 @@ 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 t = bigstring -let create size = Bigarray.(Array1.create char c_layout size) +let create size = Bigarray_compat.(Array1.create char c_layout size) let empty = create 0 -module BA1 = Bigarray.Array1 +module BA1 = Bigarray_compat.Array1 let length t = BA1.dim t diff --git a/lib/bigstringaf.mli b/lib/bigstringaf.mli index ba9d9da..92866db 100644 --- a/lib/bigstringaf.mli +++ b/lib/bigstringaf.mli @@ -9,7 +9,7 @@ So here they are. Go crazy. *) type t = - (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 (** {2 Constructors} *) diff --git a/lib/dune b/lib/dune index fe52c1d..1eaf41f 100644 --- a/lib/dune +++ b/lib/dune @@ -1,7 +1,7 @@ (library (name bigstringaf) (public_name bigstringaf) - (libraries bigarray) + (libraries bigarray-compat) (flags (:standard -safe-string)) (c_names bigstringaf_stubs) diff --git a/lib/freestanding/dune b/lib/freestanding/dune index 0d294dd..b540ea3 100644 --- a/lib/freestanding/dune +++ b/lib/freestanding/dune @@ -2,7 +2,7 @@ (name bigstringaf_freestanding) (public_name bigstringaf.freestanding) (optional) - (libraries bigarray ocaml-freestanding) + (libraries bigarray-compat ocaml-freestanding) (c_names bigstringaf_stubs) (c_flags (:include cflags.sexp))) diff --git a/lib/xen/dune b/lib/xen/dune index 6ebc6f9..bcd888d 100644 --- a/lib/xen/dune +++ b/lib/xen/dune @@ -2,7 +2,7 @@ (name bigstringaf_xen) (public_name bigstringaf.xen) (optional) - (libraries bigarray mirage-xen-posix) + (libraries bigarray-compat mirage-xen-posix) (c_names bigstringaf_stubs) (c_flags (:include cflags.sexp)))