opam-version: "2.0"
maintainer: "Christiano F. Haesbaert <haesbaert@haesbaert.org>"
authors: "Christiano F. Haesbaert <haesbaert@haesbaert.org>"
license: "ISC"
homepage: "https://github.com/mirage/charrua"
bug-reports: "https://github.com/mirage/charrua/issues"
dev-repo: "git+https://github.com/mirage/charrua.git"
doc: "https://mirage.github.io/charrua/"

build: [
  ["dune" "subst"] {pinned}
  ["dune" "build" "-p" name "-j" jobs]
]

depends: [
  "ocaml"         {>= "4.04.2"}
  "dune" {>= "1.2"}
  "ppx_sexp_conv" {>= "v0.10.0" & < "v0.15"}
  "ppx_cstruct"
  "cstruct"       {>= "3.0.1"}
  "sexplib"       {< "v0.15"}
  "ipaddr"        {>= "4.0.0" & < "5.0.0"}
  "macaddr"       {>= "4.0.0"}
  "ipaddr-sexp"
  "macaddr-sexp"
  "ethernet"      {>= "2.0.0"}
  "tcpip"         {>= "3.7.0" & < "5.0.0"}
  "rresult"
]
synopsis: "DHCP wire frame encoder and decoder"
description: """
Charrua consists a single modules, `Dhcp_wire` responsible for parsing and
constructing DHCP messages

You can browse the API for [charrua](http://www.github.com/mirage/charrua) at
http://mirage.github.io/charrua/api

#### Features

* `Dhcp_wire` provides marshalling and unmarshalling utilities for DHCP.
* Logic/sequencing is agnostic of IO and platform, so it can run on Unix as a
  process, as a Mirage unikernel or anything else.
* All DHCP options are supported at the time of this writing.
* Code is purely applicative.
* It's in OCaml, so it's pretty cool.

The name `charrua` is a reference to the, now extinct, semi-nomadic people of
southern South America.
"""
url {
  src:
    "https://github.com/mirage/charrua/releases/download/v1.1.0/charrua-v1.1.0.tbz"
  checksum: [
    "sha256=31fc8919558acb83fe366528c208ba35412ef438462a32e3d8597325c0d6893b"
    "sha512=62a97cc66f286dde86119f34fbc1c11e13c408b4b8330539c523ed2f1dc5953472315bae926dde4cf82ea3b9b627eeba562d29ba498e36ba42d954b87fd2c9b6"
  ]
}
