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

# Autogenerated by pycargoebuild 0.15.0

EAPI=8

CRATES="
	aho-corasick@1.1.3
	android-tzdata@0.1.1
	android_system_properties@0.1.5
	ansi_term@0.12.1
	anstream@0.6.19
	anstyle-parse@0.2.7
	anstyle-query@1.1.3
	anstyle-wincon@3.0.9
	anstyle@1.0.11
	assert_cmd@2.0.17
	autocfg@1.5.0
	bitflags@1.3.2
	bitflags@2.9.1
	bstr@1.12.0
	bumpalo@3.19.0
	cc@1.2.28
	cfg-if@1.0.1
	cfg_aliases@0.2.1
	chrono@0.4.41
	clap@4.5.40
	clap_builder@4.5.40
	clap_complete@4.5.54
	clap_derive@4.5.40
	clap_lex@0.7.5
	clap_mangen@0.2.27
	colorchoice@1.0.4
	config-file@0.2.3
	core-foundation-sys@0.8.7
	crossbeam-deque@0.8.6
	crossbeam-epoch@0.9.18
	crossbeam-utils@0.8.21
	ctrlc@3.4.7
	difflib@0.4.0
	directories@4.0.1
	dirs-sys@0.3.7
	doc-comment@0.3.3
	either@1.15.0
	errno@0.3.13
	fastrand@2.3.0
	filesize@0.2.0
	getrandom@0.2.16
	getrandom@0.3.3
	heck@0.5.0
	hermit-abi@0.3.9
	iana-time-zone-haiku@0.1.2
	iana-time-zone@0.1.63
	io-lifetimes@1.0.11
	is_terminal_polyfill@1.70.1
	itoa@1.0.15
	js-sys@0.3.77
	libc@0.2.174
	libredox@0.1.4
	linux-raw-sys@0.3.8
	linux-raw-sys@0.9.4
	log@0.4.27
	lscolors@0.13.0
	memchr@2.7.5
	nix@0.30.1
	ntapi@0.4.1
	nu-ansi-term@0.46.0
	num-traits@0.2.19
	once_cell@1.21.3
	once_cell_polyfill@1.70.1
	overload@0.1.1
	portable-atomic@1.11.1
	predicates-core@1.0.9
	predicates-tree@1.0.12
	predicates@3.1.3
	proc-macro2@1.0.95
	quote@1.0.40
	r-efi@5.3.0
	rayon-core@1.12.1
	rayon@1.10.0
	redox_users@0.4.6
	regex-automata@0.4.9
	regex-syntax@0.8.5
	regex@1.11.1
	roff@0.2.2
	rustix@0.37.28
	rustix@1.0.7
	rustversion@1.0.21
	ryu@1.0.20
	serde@1.0.219
	serde_derive@1.0.219
	serde_json@1.0.140
	shlex@1.3.0
	stfu8@0.2.7
	strsim@0.11.1
	syn@2.0.104
	sysinfo@0.27.8
	tempfile@3.20.0
	terminal_size@0.2.6
	termtree@0.5.1
	thiserror-impl@1.0.69
	thiserror@1.0.69
	thousands@0.2.0
	toml@0.5.11
	unicode-ident@1.0.18
	unicode-width@0.1.14
	utf8parse@0.2.2
	wait-timeout@0.2.1
	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
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.9
	winapi-x86_64-pc-windows-gnu@0.4.0
	winapi@0.3.9
	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.48.0
	windows-sys@0.59.0
	windows-sys@0.60.2
	windows-targets@0.48.5
	windows-targets@0.52.6
	windows-targets@0.53.2
	windows_aarch64_gnullvm@0.48.5
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_gnullvm@0.53.0
	windows_aarch64_msvc@0.48.5
	windows_aarch64_msvc@0.52.6
	windows_aarch64_msvc@0.53.0
	windows_i686_gnu@0.48.5
	windows_i686_gnu@0.52.6
	windows_i686_gnu@0.53.0
	windows_i686_gnullvm@0.52.6
	windows_i686_gnullvm@0.53.0
	windows_i686_msvc@0.48.5
	windows_i686_msvc@0.52.6
	windows_i686_msvc@0.53.0
	windows_x86_64_gnu@0.48.5
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnu@0.53.0
	windows_x86_64_gnullvm@0.48.5
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_gnullvm@0.53.0
	windows_x86_64_msvc@0.48.5
	windows_x86_64_msvc@0.52.6
	windows_x86_64_msvc@0.53.0
	wit-bindgen-rt@0.39.0
"

RUST_MIN_VER="1.85.0"
inherit shell-completion cargo

DESCRIPTION="A more intuitive version of du"
# Double check the homepage as the cargo_metadata crate
# does not provide this value so instead repository is used
HOMEPAGE="https://github.com/bootandy/dust"
SRC_URI="
	https://github.com/bootandy/dust/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
	${CARGO_CRATE_URIS}
"

LICENSE="Apache-2.0"
# Dependent crate licenses
LICENSE+="
	BSD-2 MIT Unicode-3.0
	|| ( Apache-2.0 Boost-1.0 )
"
SLOT="0"
KEYWORDS="~amd64 ~ppc64"

QA_FLAGS_IGNORED="usr/bin/dust"

DOCS=(
	README.md
)

src_install() {
	cargo_src_install
	doman man-page/dust.1

	newbashcomp completions/dust.bash dust
	dofishcomp completions/dust.fish
	dozshcomp completions/_dust
}