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

# Autogenerated by pycargoebuild 0.15.0

EAPI=8

RUST_MIN_VER="1.88"

MY_PN=${PN%%-*}
MY_P="${MY_PN}-${PV}"

CRATES="
	aho-corasick@1.1.5
	android_system_properties@0.1.6
	autocfg@1.5.1
	bitflags@1.3.2
	bitflags@2.13.2
	block@0.1.6
	bstr@1.13.1
	bumpalo@3.20.3
	byteorder@1.5.0
	cc@1.4.7
	cfg-if@0.1.10
	cfg-if@1.0.5
	chrono@0.4.45
	cocoa@0.20.2
	core-foundation-sys@0.7.0
	core-foundation-sys@0.8.7
	core-foundation@0.7.0
	core-foundation@0.9.4
	core-graphics-types@0.1.3
	core-graphics@0.19.2
	core-graphics@0.23.2
	core-video-sys@0.1.4
	crossterm@0.28.1
	crossterm_winapi@0.9.1
	dirs-sys@0.4.1
	dirs@5.0.1
	dlib@0.5.3
	dotenvy@0.15.7
	either@1.18.0
	enum-as-inner@0.6.1
	errno@0.3.14
	find-msvc-tools@0.1.13
	foreign-types-macros@0.2.4
	foreign-types-shared@0.1.1
	foreign-types-shared@0.3.1
	foreign-types@0.3.2
	foreign-types@0.5.0
	futures-channel@0.3.34
	futures-core@0.3.34
	futures-executor@0.3.34
	futures-io@0.3.34
	futures-macro@0.3.34
	futures-sink@0.3.34
	futures-task@0.3.34
	futures-util@0.3.34
	futures@0.3.34
	gethostname@0.3.0
	getrandom@0.2.17
	glob@0.3.4
	globset@0.4.20
	heck@0.5.0
	hermit-abi@0.5.3
	home@0.5.12
	iana-time-zone-haiku@0.1.2
	iana-time-zone@0.1.65
	if-addrs@0.10.2
	itertools@0.11.0
	js-sys@0.3.105
	lazy_static@1.5.0
	libc@0.2.189
	libloading@0.8.9
	libmacchina@8.1.0
	libredox@0.1.24
	linux-raw-sys@0.4.15
	local-ip-address@0.5.7
	lock_api@0.4.14
	log@0.4.34
	mach2@0.4.3
	malloc_buf@0.0.6
	memchr@2.8.3
	memoffset@0.7.1
	metal@0.18.0
	mio@1.2.3
	neli-proc-macros@0.1.4
	neli@0.6.5
	nix@0.26.4
	num-traits@0.2.19
	num_cpus@1.17.0
	objc@0.2.7
	objc_exception@0.1.2
	once_cell@1.21.4
	option-ext@0.2.0
	os-release@0.1.0
	parking_lot@0.12.5
	parking_lot_core@0.9.12
	pciid-parser@0.6.3
	pin-project-lite@0.2.17
	pkg-config@0.3.34
	proc-macro2@1.0.107
	quote@1.0.47
	redox_syscall@0.5.18
	redox_users@0.4.6
	regex-automata@0.4.18
	regex-syntax@0.8.11
	regex@1.13.1
	rpm-pkg-count@0.2.1
	rustix@0.38.44
	rustversion@1.0.23
	same-file@1.0.6
	scopeguard@1.2.0
	serde@1.0.229
	serde_core@1.0.229
	serde_derive@1.0.229
	shlex@2.0.1
	signal-hook-mio@0.2.5
	signal-hook-registry@1.4.8
	signal-hook@0.3.18
	slab@0.4.12
	smallvec@1.16.1
	sqlite3-src@0.6.1
	sqlite3-sys@0.17.0
	sqlite@0.36.2
	syn@1.0.109
	syn@2.0.119
	syn@3.0.6
	sysctl@0.5.5
	thiserror-impl@1.0.69
	thiserror@1.0.69
	tracing-attributes@0.1.31
	tracing-core@0.1.36
	tracing@0.1.44
	unicode-ident@1.0.26
	unicode-width@0.2.2
	walkdir@2.5.0
	wasi@0.11.1+wasi-snapshot-preview1
	wasm-bindgen-macro-support@0.2.128
	wasm-bindgen-macro@0.2.128
	wasm-bindgen-shared@0.2.128
	wasm-bindgen@0.2.128
	wayland-sys@0.31.11
	which@8.0.6
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.11
	winapi-wsapoll@0.1.2
	winapi-x86_64-pc-windows-gnu@0.4.0
	winapi@0.3.9
	windows-core@0.62.2
	windows-implement@0.48.0
	windows-implement@0.60.2
	windows-interface@0.48.0
	windows-interface@0.59.3
	windows-link@0.2.1
	windows-result@0.4.1
	windows-strings@0.5.1
	windows-sys@0.48.0
	windows-sys@0.59.0
	windows-sys@0.61.2
	windows-targets@0.48.5
	windows-targets@0.52.6
	windows@0.39.0
	windows@0.48.0
	windows_aarch64_gnullvm@0.48.5
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_msvc@0.39.0
	windows_aarch64_msvc@0.48.5
	windows_aarch64_msvc@0.52.6
	windows_i686_gnu@0.39.0
	windows_i686_gnu@0.48.5
	windows_i686_gnu@0.52.6
	windows_i686_gnullvm@0.52.6
	windows_i686_msvc@0.39.0
	windows_i686_msvc@0.48.5
	windows_i686_msvc@0.52.6
	windows_x86_64_gnu@0.39.0
	windows_x86_64_gnu@0.48.5
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnullvm@0.48.5
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_msvc@0.39.0
	windows_x86_64_msvc@0.48.5
	windows_x86_64_msvc@0.52.6
	winreg@0.10.1
	wmi@0.12.2
	x11rb-protocol@0.12.0
	x11rb@0.12.0
	${MY_PN}@${PV}
	${MY_PN}-extractor@0.2.4
	${MY_PN}-logo-parser@0.1.2
"

inherit cargo

DESCRIPTION="A rewrite of the pfetch system information tool"
HOMEPAGE="
	https://crates.io/crates/pfetch
	https://github.com/Gobidev/pfetch-rs/
"
SRC_URI="${CARGO_CRATE_URIS}"

S="${ECARGO_VENDOR}/${MY_P}"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD GPL-3 ISC MIT MPL-2.0 Unicode-3.0"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	dev-db/sqlite
	!app-misc/pfetch
"

QA_FLAGS_IGNORED="/usr/bin/pfetch"