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

# Autogenerated by pycargoebuild 0.13.5

EAPI=8

CRATES="
	aho-corasick@1.1.3
	allocator-api2@0.2.21
	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
	anyhow@1.0.98
	autocfg@1.5.0
	base64@0.22.1
	bitflags@2.9.1
	bumpalo@3.19.0
	cassowary@0.3.0
	castaway@0.2.3
	cc@1.2.29
	cfg-if@1.0.1
	chrono@0.4.41
	clap@4.5.40
	clap_builder@4.5.40
	clap_derive@4.5.40
	clap_lex@0.7.5
	colorchoice@1.0.4
	compact_str@0.8.1
	console@0.15.11
	core-foundation-sys@0.8.7
	crossterm@0.28.1
	crossterm_winapi@0.9.1
	darling@0.20.11
	darling_core@0.20.11
	darling_macro@0.20.11
	deranged@0.4.0
	dyn-clone@1.0.19
	either@1.15.0
	encode_unicode@1.0.0
	equivalent@1.0.2
	errno@0.3.13
	fnv@1.0.7
	foldhash@0.1.5
	fuchsia-cprng@0.1.1
	getrandom@0.3.3
	hashbrown@0.12.3
	hashbrown@0.15.4
	heck@0.5.0
	hex@0.4.3
	iana-time-zone-haiku@0.1.2
	iana-time-zone@0.1.63
	ident_case@1.0.1
	indexmap@1.9.3
	indexmap@2.10.0
	indoc@2.0.6
	insta@1.43.1
	instability@0.3.7
	is_terminal_polyfill@1.70.1
	itertools@0.13.0
	itertools@0.14.0
	itoa@1.0.15
	js-sys@0.3.77
	lazy_static@1.5.0
	libc@0.2.174
	linux-raw-sys@0.4.15
	lock_api@0.4.13
	log@0.4.27
	lru@0.12.5
	memchr@2.7.5
	minimal-lexical@0.2.1
	mio@1.0.4
	nom@7.1.3
	nu-ansi-term@0.46.0
	num-conv@0.1.0
	num-traits@0.2.19
	num_threads@0.1.7
	once_cell@1.21.3
	once_cell_polyfill@1.70.1
	overload@0.1.1
	parking_lot@0.12.4
	parking_lot_core@0.9.11
	paste@1.0.15
	pin-project-lite@0.2.16
	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.4.6
	rand@0.9.1
	rand_chacha@0.9.0
	rand_core@0.3.1
	rand_core@0.4.2
	rand_core@0.9.3
	ratatui@0.29.0
	rdrand@0.4.0
	redox_syscall@0.5.13
	ref-cast-impl@1.0.24
	ref-cast@1.0.24
	regex-automata@0.4.9
	regex-syntax@0.8.5
	regex@1.11.1
	remove_dir_all@0.5.3
	rustix@0.38.44
	rustversion@1.0.21
	ryu@1.0.20
	schemars@0.9.0
	schemars@1.0.4
	scopeguard@1.2.0
	serde@1.0.219
	serde_derive@1.0.219
	serde_json@1.0.140
	serde_spanned@0.6.9
	serde_with@3.14.0
	serde_with_macros@3.14.0
	sharded-slab@0.1.7
	shell-words@1.1.0
	shlex@1.3.0
	signal-hook-mio@0.2.4
	signal-hook-registry@1.4.5
	signal-hook@0.3.18
	simdutf8@0.1.5
	similar@2.7.0
	smallvec@1.15.1
	static_assertions@1.1.0
	strsim@0.11.1
	strum@0.26.3
	strum_macros@0.26.4
	syn@2.0.104
	tempdir@0.3.7
	thiserror-impl@1.0.69
	thiserror-impl@2.0.12
	thiserror@1.0.69
	thiserror@2.0.12
	thread_local@1.1.9
	time-core@0.1.4
	time-macros@0.2.22
	time@0.3.41
	toml@0.8.23
	toml_datetime@0.6.11
	toml_edit@0.22.27
	toml_write@0.1.2
	tracing-attributes@0.1.30
	tracing-chrome@0.7.2
	tracing-core@0.1.34
	tracing-log@0.2.0
	tracing-subscriber@0.3.19
	tracing@0.1.41
	tui-textarea@0.7.0
	tui_confirm_dialog@0.3.1
	unicode-ident@1.0.18
	unicode-segmentation@1.12.0
	unicode-truncate@1.1.0
	unicode-width@0.1.14
	unicode-width@0.2.0
	utf8parse@0.2.2
	valuable@0.1.1
	version-compare@0.2.0
	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-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.59.0
	windows-sys@0.60.2
	windows-targets@0.52.6
	windows-targets@0.53.2
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_gnullvm@0.53.0
	windows_aarch64_msvc@0.52.6
	windows_aarch64_msvc@0.53.0
	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.52.6
	windows_i686_msvc@0.53.0
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnu@0.53.0
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_gnullvm@0.53.0
	windows_x86_64_msvc@0.52.6
	windows_x86_64_msvc@0.53.0
	winnow@0.7.11
	wit-bindgen-rt@0.39.0
	zerocopy-derive@0.8.26
	zerocopy@0.8.26
"

declare -A GIT_CRATES=(
	[ansi-to-tui]='https://github.com/Cretezy/ansi-to-tui;74bd97e76066186cace33ea04cf497055db67e62;ansi-to-tui-%commit%'
)

inherit cargo

DESCRIPTION="TUI for Jujutsu/jj"
HOMEPAGE="https://github.com/Cretezy/lazyjj"
SRC_URI="
	${CARGO_CRATE_URIS}
	"https://github.com/Cretezy/${PN}/archive/refs/tags/v${PV}.tar.gz" -> ${P}.tar.gz
"

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

# restrict mirror for faster downloads, since guru isn't mirrored
RESTRICT="mirror"

RDEPEND+="
	>=dev-vcs/jj-0.33.0
"

QA_FLAGS_IGNORED="usr/bin/lazyjj"
