# Copyright 2026 ReK2 - Chris F.N. <rek2@hispagatos.org>
# https://rek2.hispagatos.org
# Distributed under the terms of the GNU General Public License v3

EAPI=8

RUST_MIN_VER="1.93"
CRATES=""

inherit cargo git-r3

DESCRIPTION="XSS scanner and utility focused on automation"
HOMEPAGE="https://github.com/hahwul/dalfox"
EGIT_REPO_URI="https://github.com/hahwul/dalfox.git"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 CC0-1.0 ISC
	MPL-2.0 Unicode-3.0 Unlicense ZLIB
"
SLOT="0"
KEYWORDS=""

QA_FLAGS_IGNORED="usr/bin/dalfox"

src_unpack() {
	git-r3_src_unpack
	cd "${S}" || die
	cargo_live_src_unpack
}

src_install() {
	cargo_src_install
	dodoc README.md LICENSE.txt
}