opam-version: "2.0"
bug-reports:  "https://github.com/LaurentMazare/ocaml-wasmtime/issues"
homepage:     "https://github.com/LaurentMazare/ocaml-wasmtime"
dev-repo:     "git+https://github.com/LaurentMazare/ocaml-wasmtime.git"
maintainer:   "Laurent Mazare <lmazare@gmail.com>"
authors:      [ "Laurent Mazare" ]

build: [["dune" "build" "-p" name "-j" jobs]]

run-test: [
  ["dune" "runtest" "-p" name "-j" jobs] { os-distribution != "alpine" }
]

depends: [
  "base" {>= "v0.13.0" & < "v0.15"}
  "ctypes" {>= "0.5"}
  "ctypes-foreign"
  "dune" {>= "2.7.0"}
  "dune-configurator"
  "libwasmtime" {>= "0.22.0" & < "0.23.0"}
  "ocaml" {>= "4.10"}
  "ppx_expect" {>= "v0.13.0" & < "v0.15" & with-test}
  "stdio"
]

available: arch = "x86_64" & (os = "linux" | os = "macos")

synopsis: "Wasmtime bindings for OCaml"
description: """
Bindings for Wasmtime, a small and efficient
runtime for WebAssembly.
"""

url {
  src: "https://github.com/LaurentMazare/ocaml-wasmtime/archive/v0.0.3.tar.gz"
  checksum: [
    "md5=103538f885f81ce645324bea3e045f3e"
    "sha512=6aca83445e2742092e8fb0c1183e3c5325b7584cc78b56744a1309d4129392818a815ad1daecdf050486208248f609a97a9a25b405c37cb6d5c68d0265d164f3"
  ]
}
