# 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.82.0"
CRATES="
	adler2@2.0.1
	ahash@0.8.12
	anstream@0.6.21
	anstyle-parse@0.2.7
	anstyle-query@1.1.4
	anstyle-wincon@3.0.10
	anstyle@1.0.13
	arrayvec@0.7.6
	bitflags@2.10.0
	bytemuck@1.24.0
	cfg-if@1.0.4
	clap@4.5.51
	clap_builder@4.5.51
	clap_derive@4.5.49
	clap_lex@0.7.6
	colorchoice@1.0.4
	crc32fast@1.5.0
	csv-core@0.1.13
	csv@1.4.0
	decodeme@10.1.3
	dirs-next@2.0.0
	dirs-sys-next@0.1.2
	encode_unicode@1.0.0
	flate2@1.1.5
	getrandom@0.2.16
	getrandom@0.3.4
	heck@0.5.0
	hermit-abi@0.5.2
	inferno@0.11.21
	is-terminal@0.4.17
	is_terminal_polyfill@1.70.2
	itoa@1.0.15
	lazy_static@1.5.0
	libc@0.2.177
	libredox@0.1.10
	lock_api@0.4.14
	log@0.4.28
	measureme@10.1.3
	memchr@2.7.6
	memmap2@0.2.3
	miniz_oxide@0.8.9
	num-format@0.4.4
	once_cell@1.21.3
	once_cell_polyfill@1.70.2
	parking_lot@0.12.5
	parking_lot_core@0.9.12
	perf-event-open-sys@3.0.0
	prettytable-rs@0.10.0
	proc-macro2@1.0.103
	quick-xml@0.26.0
	quote@1.0.42
	r-efi@5.3.0
	redox_syscall@0.5.18
	redox_users@0.4.6
	rgb@0.8.52
	rustc-hash@1.1.0
	rustversion@1.0.22
	ryu@1.0.20
	scopeguard@1.2.0
	serde@1.0.228
	serde_core@1.0.228
	serde_derive@1.0.228
	serde_json@1.0.145
	simd-adler32@0.3.7
	smallvec@1.15.1
	str_stack@0.1.0
	strsim@0.11.1
	syn@2.0.109
	term@0.7.0
	thiserror-impl@1.0.69
	thiserror@1.0.69
	unicode-ident@1.0.22
	unicode-width@0.1.14
	utf8parse@0.2.2
	version_check@0.9.5
	wasi@0.11.1+wasi-snapshot-preview1
	wasip2@1.0.1+wasi-0.2.4
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-x86_64-pc-windows-gnu@0.4.0
	winapi@0.3.9
	windows-link@0.2.1
	windows-sys@0.60.2
	windows-sys@0.61.2
	windows-targets@0.53.5
	windows_aarch64_gnullvm@0.53.1
	windows_aarch64_msvc@0.53.1
	windows_i686_gnu@0.53.1
	windows_i686_gnullvm@0.53.1
	windows_i686_msvc@0.53.1
	windows_x86_64_gnu@0.53.1
	windows_x86_64_gnullvm@0.53.1
	windows_x86_64_msvc@0.53.1
	wit-bindgen@0.46.0
	zerocopy-derive@0.8.27
	zerocopy@0.8.27
"

inherit cargo

DESCRIPTION="Support crate for rustc's self-profiling feature"
HOMEPAGE="https://github.com/rust-lang/measureme"
SRC_URI="
	https://github.com/rust-lang/measureme/archive/${PV}/${P}.tar.gz
	${CARGO_CRATE_URIS}
"

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

QA_FLAGS_IGNORED=".*"

src_install() {
	cargo_src_install --path crox
	cargo_src_install --path flamegraph
	cargo_src_install --path mmedit
	cargo_src_install --path mmview
	cargo_src_install --path stack_collapse
	cargo_src_install --path summarize

	einstalldocs
}