# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit dune git-r3

DESCRIPTION="Library to generate encoder/decoder which ensure isomorphism"
HOMEPAGE="https://github.com/mirage/encore"
EGIT_REPO_URI="https://github.com/mirage/${PN}.git"

LICENSE="MIT"
SLOT="0/${PV}"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"

RDEPEND="dev-ml/angstrom:=[ocamlopt?]
	dev-ml/bigstringaf:0=[ocamlopt?]
	dev-ml/fmt:0=[ocamlopt?]"
BDEPEND="test? ( dev-ml/alcotest )"