# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.15.0

EAPI=8

CRATES="
	addr2line@0.24.2
	adler2@2.0.1
	android-tzdata@0.1.1
	android_system_properties@0.1.5
	anstream@0.6.19
	anstyle-parse@0.2.7
	anstyle-query@1.1.3
	anstyle-wincon@3.0.9
	anstyle@1.0.11
	autocfg@1.5.0
	backtrace@0.3.75
	base64@0.22.1
	bitflags@2.9.1
	block-buffer@0.10.4
	bumpalo@3.19.0
	bytes@1.10.1
	cc@1.2.30
	cfg-if@1.0.1
	chrono@0.4.41
	clap@4.5.41
	clap_builder@4.5.41
	clap_derive@4.5.41
	clap_lex@0.7.5
	colorchoice@1.0.4
	core-foundation-sys@0.8.7
	cpufeatures@0.2.17
	crypto-common@0.1.6
	darling@0.20.11
	darling_core@0.20.11
	darling_macro@0.20.11
	data-encoding@2.9.0
	deranged@0.4.0
	digest@0.10.7
	displaydoc@0.2.5
	dyn-clone@1.0.19
	equivalent@1.0.2
	fnv@1.0.7
	form_urlencoded@1.2.1
	futures-core@0.3.31
	futures-macro@0.3.31
	futures-sink@0.3.31
	futures-task@0.3.31
	futures-util@0.3.31
	generic-array@0.14.7
	getrandom@0.3.3
	gimli@0.31.1
	hashbrown@0.12.3
	hashbrown@0.15.4
	heck@0.5.0
	hex@0.4.3
	http@1.3.1
	httparse@1.10.1
	iana-time-zone-haiku@0.1.2
	iana-time-zone@0.1.63
	icu_collections@2.0.0
	icu_locale_core@2.0.0
	icu_normalizer@2.0.0
	icu_normalizer_data@2.0.0
	icu_properties@2.0.1
	icu_properties_data@2.0.1
	icu_provider@2.0.0
	ident_case@1.0.1
	idna@1.0.3
	idna_adapter@1.2.1
	indexmap@1.9.3
	indexmap@2.10.0
	io-uring@0.7.9
	is_terminal_polyfill@1.70.1
	itoa@1.0.15
	js-sys@0.3.77
	libc@0.2.174
	litemap@0.8.0
	log@0.4.27
	memchr@2.7.5
	miniz_oxide@0.8.9
	mio@1.0.4
	num-conv@0.1.0
	num-traits@0.2.19
	object@0.36.7
	obws@0.14.0
	once_cell@1.21.3
	once_cell_polyfill@1.70.1
	percent-encoding@2.3.1
	pin-project-lite@0.2.16
	pin-utils@0.1.0
	potential_utf@0.1.2
	powerfmt@0.2.0
	ppv-lite86@0.2.21
	proc-macro2@1.0.95
	quote@1.0.40
	r-efi@5.3.0
	rand@0.9.2
	rand_chacha@0.9.0
	rand_core@0.9.3
	ref-cast-impl@1.0.24
	ref-cast@1.0.24
	rgb@0.8.52
	rustc-demangle@0.1.25
	rustversion@1.0.21
	ryu@1.0.20
	schemars@0.9.0
	schemars@1.0.4
	semver@1.0.26
	serde@1.0.219
	serde_derive@1.0.219
	serde_json@1.0.141
	serde_repr@0.1.20
	serde_with@3.14.0
	serde_with_macros@3.14.0
	sha1@0.10.6
	sha2@0.10.9
	shlex@1.3.0
	slab@0.4.10
	smallvec@1.15.1
	socket2@0.5.10
	stable_deref_trait@1.2.0
	strsim@0.11.1
	syn@2.0.104
	synstructure@0.13.2
	thiserror-impl@2.0.12
	thiserror@2.0.12
	time-core@0.1.4
	time-macros@0.2.22
	time@0.3.41
	tinystr@0.8.1
	tokio-macros@2.5.0
	tokio-tungstenite@0.26.2
	tokio@1.46.1
	tracing-attributes@0.1.30
	tracing-core@0.1.34
	tracing@0.1.41
	tungstenite@0.26.2
	typenum@1.18.0
	unicode-ident@1.0.18
	url@2.5.4
	utf-8@0.7.6
	utf8_iter@1.0.4
	utf8parse@0.2.2
	uuid@1.17.0
	version_check@0.9.5
	wasi@0.11.1+wasi-snapshot-preview1
	wasi@0.14.2+wasi-0.2.4
	wasm-bindgen-backend@0.2.100
	wasm-bindgen-macro-support@0.2.100
	wasm-bindgen-macro@0.2.100
	wasm-bindgen-shared@0.2.100
	wasm-bindgen@0.2.100
	windows-core@0.61.2
	windows-implement@0.60.0
	windows-interface@0.59.1
	windows-link@0.1.3
	windows-result@0.3.4
	windows-strings@0.4.2
	windows-sys@0.52.0
	windows-sys@0.59.0
	windows-targets@0.52.6
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_msvc@0.52.6
	windows_i686_gnu@0.52.6
	windows_i686_gnullvm@0.52.6
	windows_i686_msvc@0.52.6
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_msvc@0.52.6
	wit-bindgen-rt@0.39.0
	writeable@0.6.1
	yoke-derive@0.8.0
	yoke@0.8.0
	zerocopy-derive@0.8.26
	zerocopy@0.8.26
	zerofrom-derive@0.1.6
	zerofrom@0.1.6
	zerotrie@0.2.2
	zerovec-derive@0.11.1
	zerovec@0.11.2
"

inherit cargo

DESCRIPTION="A minimal obs CLI for obs-websocket v5"
HOMEPAGE="https://github.com/grigio/obs-cmd"
SRC_URI="
	https://github.com/grigio/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
	MIT Unicode-DFS-2016
	|| ( Apache-2.0 Boost-1.0 )
"
SLOT="0"
KEYWORDS="~amd64"

RESTRICT="mirror"

RUST_MIN_VER=1.88.0

src_install() {
	dobin "$(cargo_target_dir)"/obs-cmd
}