PORTNAME=	oha
DISTVERSIONPREFIX=	v
DISTVERSION=	1.3.0
PORTREVISION=	4
CATEGORIES=	net

MAINTAINER=	otis@FreeBSD.org
COMMENT=	Web load generator
WWW=		https://github.com/hatoo/oha

LICENSE=	MIT

USES=		cargo ssl
USE_GITHUB=	yes
GH_ACCOUNT=	hatoo

CARGO_CRATES=	addr2line-0.21.0 \
		adler-1.0.2 \
		ahash-0.7.7 \
		ahash-0.8.7 \
		aho-corasick-1.1.2 \
		allocator-api2-0.2.16 \
		anstream-0.6.11 \
		anstyle-1.0.5 \
		anstyle-parse-0.2.3 \
		anstyle-query-1.0.2 \
		anstyle-wincon-3.0.2 \
		anyhow-1.0.79 \
		arrayvec-0.7.4 \
		assert_cmd-2.0.13 \
		async-trait-0.1.77 \
		autocfg-1.1.0 \
		average-0.14.1 \
		axum-0.7.4 \
		axum-core-0.4.3 \
		backtrace-0.3.69 \
		base64-0.21.7 \
		bitflags-1.3.2 \
		bitflags-2.4.2 \
		bitvec-1.0.1 \
		borsh-1.3.1 \
		borsh-derive-1.3.1 \
		bstr-1.9.0 \
		bumpalo-3.14.0 \
		byte-unit-5.1.4 \
		bytecheck-0.6.12 \
		bytecheck_derive-0.6.12 \
		bytes-1.5.0 \
		cassowary-0.3.0 \
		castaway-0.2.2 \
		cc-1.0.83 \
		cfg-if-1.0.0 \
		cfg_aliases-0.1.1 \
		clap-4.4.18 \
		clap_builder-4.4.18 \
		clap_derive-4.4.7 \
		clap_lex-0.6.0 \
		colorchoice-1.0.0 \
		compact_str-0.7.1 \
		core-foundation-0.9.4 \
		core-foundation-sys-0.8.6 \
		crossterm-0.27.0 \
		crossterm_winapi-0.9.1 \
		data-encoding-2.5.0 \
		difflib-0.4.0 \
		doc-comment-0.3.3 \
		easy-cast-0.5.2 \
		either-1.9.0 \
		enum-as-inner-0.6.0 \
		equivalent-1.0.1 \
		errno-0.3.8 \
		fastrand-2.0.1 \
		float-ord-0.3.2 \
		flume-0.11.0 \
		fnv-1.0.7 \
		foreign-types-0.3.2 \
		foreign-types-shared-0.1.1 \
		form_urlencoded-1.2.1 \
		funty-2.0.0 \
		futures-0.3.30 \
		futures-channel-0.3.30 \
		futures-core-0.3.30 \
		futures-executor-0.3.30 \
		futures-io-0.3.30 \
		futures-macro-0.3.30 \
		futures-sink-0.3.30 \
		futures-task-0.3.30 \
		futures-util-0.3.30 \
		getrandom-0.2.12 \
		gimli-0.28.1 \
		h2-0.4.2 \
		hashbrown-0.12.3 \
		hashbrown-0.14.3 \
		heck-0.4.1 \
		hermit-abi-0.3.4 \
		hickory-proto-0.24.0 \
		hickory-resolver-0.24.0 \
		hostname-0.3.1 \
		http-1.0.0 \
		http-body-1.0.0 \
		http-body-util-0.1.0 \
		httparse-1.8.0 \
		httpdate-1.0.3 \
		humantime-2.1.0 \
		hyper-1.1.0 \
		hyper-util-0.1.3 \
		idna-0.4.0 \
		idna-0.5.0 \
		indexmap-2.2.2 \
		indoc-2.0.4 \
		ipconfig-0.3.2 \
		ipnet-2.9.0 \
		itertools-0.12.1 \
		itoa-1.0.10 \
		jemalloc-sys-0.5.4+5.3.0-patched \
		jemallocator-0.5.4 \
		js-sys-0.3.67 \
		lazy_static-1.4.0 \
		libc-0.2.153 \
		libm-0.2.8 \
		linked-hash-map-0.5.6 \
		linux-raw-sys-0.4.13 \
		lock_api-0.4.11 \
		log-0.4.20 \
		lru-0.12.2 \
		lru-cache-0.1.2 \
		match_cfg-0.1.0 \
		matchit-0.7.3 \
		memchr-2.7.1 \
		mime-0.3.17 \
		miniz_oxide-0.7.2 \
		mio-0.8.10 \
		nanorand-0.7.0 \
		native-tls-0.2.11 \
		num-traits-0.2.17 \
		num_cpus-1.16.0 \
		object-0.32.2 \
		once_cell-1.19.0 \
		openssl-0.10.63 \
		openssl-macros-0.1.1 \
		openssl-probe-0.1.5 \
		openssl-sys-0.9.99 \
		parking_lot-0.12.1 \
		parking_lot_core-0.9.9 \
		paste-1.0.14 \
		percent-encoding-2.3.1 \
		pin-project-1.1.4 \
		pin-project-internal-1.1.4 \
		pin-project-lite-0.2.13 \
		pin-utils-0.1.0 \
		pkg-config-0.3.29 \
		ppv-lite86-0.2.17 \
		predicates-3.1.0 \
		predicates-core-1.0.6 \
		predicates-tree-1.0.9 \
		proc-macro-crate-3.1.0 \
		proc-macro-error-1.0.4 \
		proc-macro-error-attr-1.0.4 \
		proc-macro2-1.0.78 \
		ptr_meta-0.1.4 \
		ptr_meta_derive-0.1.4 \
		quick-error-1.2.3 \
		quote-1.0.35 \
		radium-0.7.0 \
		rand-0.8.5 \
		rand_chacha-0.3.1 \
		rand_core-0.6.4 \
		rand_regex-0.17.0 \
		ratatui-0.26.0 \
		redox_syscall-0.4.1 \
		regex-1.10.3 \
		regex-automata-0.4.5 \
		regex-syntax-0.8.2 \
		rend-0.4.2 \
		resolv-conf-0.7.0 \
		ring-0.17.7 \
		rkyv-0.7.44 \
		rkyv_derive-0.7.44 \
		rlimit-0.10.1 \
		rust_decimal-1.34.2 \
		rustc-demangle-0.1.23 \
		rustix-0.38.31 \
		rustls-0.22.2 \
		rustls-native-certs-0.7.0 \
		rustls-pemfile-2.0.0 \
		rustls-pki-types-1.2.0 \
		rustls-webpki-0.102.2 \
		rustversion-1.0.14 \
		ryu-1.0.16 \
		schannel-0.1.23 \
		scopeguard-1.2.0 \
		seahash-4.1.0 \
		security-framework-2.9.2 \
		security-framework-sys-2.9.1 \
		serde-1.0.196 \
		serde_derive-1.0.196 \
		serde_json-1.0.113 \
		serde_path_to_error-0.1.15 \
		serde_urlencoded-0.7.1 \
		signal-hook-0.3.17 \
		signal-hook-mio-0.2.3 \
		signal-hook-registry-1.4.1 \
		simdutf8-0.1.4 \
		slab-0.4.9 \
		smallvec-1.13.1 \
		socket2-0.5.5 \
		spin-0.9.8 \
		stability-0.1.1 \
		static_assertions-1.1.0 \
		strsim-0.10.0 \
		strum-0.26.1 \
		strum_macros-0.26.1 \
		subtle-2.5.0 \
		syn-1.0.109 \
		syn-2.0.48 \
		syn_derive-0.1.8 \
		sync_wrapper-0.1.2 \
		tap-1.0.1 \
		tempfile-3.9.0 \
		termtree-0.4.1 \
		thiserror-1.0.56 \
		thiserror-impl-1.0.56 \
		tinyvec-1.6.0 \
		tinyvec_macros-0.1.1 \
		tokio-1.36.0 \
		tokio-macros-2.2.0 \
		tokio-native-tls-0.3.1 \
		tokio-rustls-0.25.0 \
		tokio-util-0.7.10 \
		toml_datetime-0.6.5 \
		toml_edit-0.21.1 \
		tower-0.4.13 \
		tower-layer-0.3.2 \
		tower-service-0.3.2 \
		tracing-0.1.40 \
		tracing-attributes-0.1.27 \
		tracing-core-0.1.32 \
		try-lock-0.2.5 \
		unicode-bidi-0.3.15 \
		unicode-ident-1.0.12 \
		unicode-normalization-0.1.22 \
		unicode-segmentation-1.10.1 \
		unicode-width-0.1.11 \
		untrusted-0.9.0 \
		url-2.5.0 \
		utf8-width-0.1.7 \
		utf8parse-0.2.1 \
		uuid-1.7.0 \
		vcpkg-0.2.15 \
		version_check-0.9.4 \
		wait-timeout-0.2.0 \
		want-0.3.1 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasm-bindgen-0.2.90 \
		wasm-bindgen-backend-0.2.90 \
		wasm-bindgen-macro-0.2.90 \
		wasm-bindgen-macro-support-0.2.90 \
		wasm-bindgen-shared-0.2.90 \
		widestring-1.0.2 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-sys-0.48.0 \
		windows-sys-0.52.0 \
		windows-targets-0.48.5 \
		windows-targets-0.52.0 \
		windows_aarch64_gnullvm-0.48.5 \
		windows_aarch64_gnullvm-0.52.0 \
		windows_aarch64_msvc-0.48.5 \
		windows_aarch64_msvc-0.52.0 \
		windows_i686_gnu-0.48.5 \
		windows_i686_gnu-0.52.0 \
		windows_i686_msvc-0.48.5 \
		windows_i686_msvc-0.52.0 \
		windows_x86_64_gnu-0.48.5 \
		windows_x86_64_gnu-0.52.0 \
		windows_x86_64_gnullvm-0.48.5 \
		windows_x86_64_gnullvm-0.52.0 \
		windows_x86_64_msvc-0.48.5 \
		windows_x86_64_msvc-0.52.0 \
		winnow-0.5.37 \
		winreg-0.50.0 \
		wyz-0.5.1 \
		zerocopy-0.7.32 \
		zerocopy-derive-0.7.32 \
		zeroize-1.7.0

PLIST_FILES=	bin/oha

post-install:
		${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/oha

.include <bsd.port.mk>
