PORTNAME=	oha
DISTVERSIONPREFIX=	v
DISTVERSION=	0.5.7
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=	anyhow-1.0.69 \
		assert_cmd-2.0.8 \
		async-trait-0.1.64 \
		autocfg-1.1.0 \
		average-0.13.1 \
		base64-0.13.1 \
		base64-0.21.0 \
		bitflags-1.3.2 \
		block-buffer-0.10.3 \
		bstr-1.3.0 \
		buf_redux-0.8.4 \
		bumpalo-3.12.0 \
		byte-unit-4.0.18 \
		byteorder-1.4.3 \
		bytes-1.4.0 \
		cassowary-0.3.0 \
		cc-1.0.79 \
		cfg-if-1.0.0 \
		clap-4.1.6 \
		clap_derive-4.1.0 \
		clap_lex-0.3.2 \
		core-foundation-0.9.3 \
		core-foundation-sys-0.8.3 \
		cpufeatures-0.2.5 \
		crossterm-0.25.0 \
		crossterm_winapi-0.9.0 \
		crypto-common-0.1.6 \
		data-encoding-2.3.3 \
		difflib-0.4.0 \
		digest-0.10.6 \
		doc-comment-0.3.3 \
		easy-cast-0.4.4 \
		either-1.8.1 \
		enum-as-inner-0.5.1 \
		errno-0.2.8 \
		errno-dragonfly-0.1.2 \
		fastrand-1.9.0 \
		float-ord-0.3.2 \
		flume-0.10.14 \
		fnv-1.0.7 \
		foreign-types-0.3.2 \
		foreign-types-shared-0.1.1 \
		form_urlencoded-1.1.0 \
		futures-0.3.26 \
		futures-channel-0.3.26 \
		futures-core-0.3.26 \
		futures-executor-0.3.26 \
		futures-io-0.3.26 \
		futures-macro-0.3.26 \
		futures-sink-0.3.26 \
		futures-task-0.3.26 \
		futures-util-0.3.26 \
		generic-array-0.14.6 \
		get-port-4.0.0 \
		getrandom-0.2.8 \
		h2-0.3.15 \
		hashbrown-0.12.3 \
		headers-0.3.8 \
		headers-core-0.2.0 \
		heck-0.4.1 \
		hermit-abi-0.2.6 \
		hermit-abi-0.3.1 \
		hostname-0.3.1 \
		http-0.2.9 \
		http-body-0.4.5 \
		httparse-1.8.0 \
		httpdate-1.0.2 \
		humantime-2.1.0 \
		hyper-0.14.24 \
		idna-0.2.3 \
		idna-0.3.0 \
		indexmap-1.9.2 \
		instant-0.1.12 \
		io-lifetimes-1.0.5 \
		ipconfig-0.3.1 \
		ipnet-2.7.1 \
		is-terminal-0.4.4 \
		itertools-0.10.5 \
		itoa-1.0.5 \
		jemalloc-sys-0.5.3+5.3.0-patched \
		jemallocator-0.5.0 \
		js-sys-0.3.61 \
		lazy_static-1.4.0 \
		libc-0.2.139 \
		libm-0.2.6 \
		linked-hash-map-0.5.6 \
		linux-raw-sys-0.1.4 \
		lock_api-0.4.9 \
		log-0.4.17 \
		lru-cache-0.1.2 \
		match_cfg-0.1.0 \
		matches-0.1.10 \
		memchr-2.5.0 \
		mime-0.3.16 \
		mime_guess-2.0.4 \
		mio-0.8.6 \
		multipart-0.18.0 \
		nanorand-0.7.0 \
		native-tls-0.2.11 \
		num-traits-0.2.15 \
		num_cpus-1.15.0 \
		once_cell-1.17.1 \
		openssl-0.10.45 \
		openssl-macros-0.1.0 \
		openssl-probe-0.1.5 \
		openssl-sys-0.9.80 \
		os_str_bytes-6.4.1 \
		parking_lot-0.12.1 \
		parking_lot_core-0.9.7 \
		percent-encoding-2.2.0 \
		pin-project-1.0.12 \
		pin-project-internal-1.0.12 \
		pin-project-lite-0.2.9 \
		pin-utils-0.1.0 \
		pkg-config-0.3.26 \
		ppv-lite86-0.2.17 \
		predicates-2.1.5 \
		predicates-core-1.0.5 \
		predicates-tree-1.0.7 \
		proc-macro-error-1.0.4 \
		proc-macro-error-attr-1.0.4 \
		proc-macro2-1.0.51 \
		quick-error-1.2.3 \
		quote-1.0.23 \
		rand-0.8.5 \
		rand_chacha-0.3.1 \
		rand_core-0.6.4 \
		redox_syscall-0.2.16 \
		regex-automata-0.1.10 \
		remove_dir_all-0.5.3 \
		resolv-conf-0.7.0 \
		ring-0.16.20 \
		rlimit-0.9.1 \
		rustix-0.36.8 \
		rustls-0.20.8 \
		rustls-native-certs-0.6.2 \
		rustls-pemfile-0.2.1 \
		rustls-pemfile-1.0.2 \
		ryu-1.0.12 \
		safemem-0.3.3 \
		schannel-0.1.21 \
		scoped-tls-1.0.1 \
		scopeguard-1.1.0 \
		sct-0.7.0 \
		security-framework-2.8.2 \
		security-framework-sys-2.8.0 \
		serde-1.0.152 \
		serde_derive-1.0.152 \
		serde_json-1.0.93 \
		serde_urlencoded-0.7.1 \
		sha-1-0.10.1 \
		sha1-0.10.5 \
		signal-hook-0.3.15 \
		signal-hook-mio-0.2.3 \
		signal-hook-registry-1.4.1 \
		slab-0.4.8 \
		smallvec-1.10.0 \
		socket2-0.4.7 \
		spin-0.5.2 \
		spin-0.9.5 \
		strsim-0.10.0 \
		syn-1.0.109 \
		tempfile-3.3.0 \
		termcolor-1.2.0 \
		termtree-0.4.0 \
		thiserror-1.0.38 \
		thiserror-impl-1.0.38 \
		tinyvec-1.6.0 \
		tinyvec_macros-0.1.1 \
		tokio-1.25.0 \
		tokio-macros-1.8.2 \
		tokio-native-tls-0.3.1 \
		tokio-rustls-0.23.4 \
		tokio-stream-0.1.12 \
		tokio-tungstenite-0.17.2 \
		tokio-util-0.7.7 \
		tower-service-0.3.2 \
		tracing-0.1.37 \
		tracing-attributes-0.1.23 \
		tracing-core-0.1.30 \
		trust-dns-proto-0.22.0 \
		trust-dns-resolver-0.22.0 \
		try-lock-0.2.4 \
		tui-0.19.0 \
		tungstenite-0.17.3 \
		twoway-0.1.8 \
		typenum-1.16.0 \
		unicase-2.6.0 \
		unicode-bidi-0.3.10 \
		unicode-ident-1.0.6 \
		unicode-normalization-0.1.22 \
		unicode-segmentation-1.10.1 \
		unicode-width-0.1.10 \
		untrusted-0.7.1 \
		url-2.3.1 \
		utf-8-0.7.6 \
		utf8-width-0.1.6 \
		vcpkg-0.2.15 \
		version_check-0.9.4 \
		wait-timeout-0.2.0 \
		want-0.3.0 \
		warp-0.3.3 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasm-bindgen-0.2.84 \
		wasm-bindgen-backend-0.2.84 \
		wasm-bindgen-macro-0.2.84 \
		wasm-bindgen-macro-support-0.2.84 \
		wasm-bindgen-shared-0.2.84 \
		web-sys-0.3.61 \
		webpki-0.22.0 \
		widestring-0.5.1 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.5 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-sys-0.42.0 \
		windows-sys-0.45.0 \
		windows-targets-0.42.1 \
		windows_aarch64_gnullvm-0.42.1 \
		windows_aarch64_msvc-0.42.1 \
		windows_i686_gnu-0.42.1 \
		windows_i686_msvc-0.42.1 \
		windows_x86_64_gnu-0.42.1 \
		windows_x86_64_gnullvm-0.42.1 \
		windows_x86_64_msvc-0.42.1 \
		winreg-0.10.1

PLIST_FILES=	bin/oha

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

.include <bsd.port.mk>
