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.21.0" & < "0.22.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.2.tar.gz"
  checksum: [
    "md5=87759321ed91f5de130572cfbbb9138c"
    "sha512=1cd5382a2cf725faa2d7e224cbc00f41ed4309a655d9b8f6f53beadac607d5c61029910e3e3f1ed44a025f9a2ce5b4fbe90b8638309a1cefd46a33a146526e6b"
  ]
}
