# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CRATES="
	addr2line@0.24.2
	adler2@2.0.1
	ahash@0.8.12
	aho-corasick@1.1.3
	allocator-api2@0.2.21
	android-tzdata@0.1.1
	android_system_properties@0.1.5
	anndists@0.1.3
	ansi_colours@1.2.3
	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
	arboard@3.6.0
	async-recursion@1.1.1
	async-trait@0.1.88
	atomic-waker@1.1.2
	autocfg@1.5.0
	aws-smithy-eventstream@0.60.9
	aws-smithy-types@1.3.2
	backtrace@0.3.75
	base64-simd@0.8.0
	base64@0.22.1
	bincode@1.3.3
	bincode@2.0.1
	bit-set@0.8.0
	bit-vec@0.8.0
	bitflags@1.3.2
	bitflags@2.9.1
	block-buffer@0.10.4
	bm25@2.3.0
	bumpalo@3.19.0
	bytemuck@1.23.1
	byteorder@1.5.0
	bytes-utils@0.1.4
	bytes@1.10.1
	cached@0.55.1
	cached_proc_macro@0.24.0
	cached_proc_macro_types@0.1.1
	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_derive@4.5.40
	clap_lex@0.7.5
	clipboard-win@5.4.0
	colorchoice@1.0.4
	combine@4.6.7
	core-foundation-sys@0.8.7
	core-foundation@0.10.1
	cpu-time@1.0.0
	cpufeatures@0.2.17
	crc32fast@1.4.2
	crossbeam-deque@0.8.6
	crossbeam-epoch@0.9.18
	crossbeam-utils@0.8.21
	crossterm@0.25.0
	crossterm@0.28.1
	crossterm_winapi@0.9.1
	crypto-common@0.1.6
	cssparser-macros@0.6.1
	cssparser@0.34.0
	darling@0.20.11
	darling_core@0.20.11
	darling_macro@0.20.11
	deranged@0.4.0
	derive_more@0.99.20
	deunicode@1.6.2
	diff@0.1.13
	digest@0.10.7
	dirs-sys@0.5.0
	dirs@6.0.0
	dispatch2@0.3.0
	displaydoc@0.2.5
	downcast-rs@1.2.1
	dtoa-short@0.3.5
	dtoa@1.0.10
	duct@1.0.0
	dyn-clone@1.0.19
	ego-tree@0.10.0
	either@1.15.0
	enum-as-inner@0.6.1
	env_filter@0.1.3
	env_home@0.1.0
	env_logger@0.11.8
	equivalent@1.0.2
	errno@0.3.13
	error-code@3.3.2
	eventsource-stream@0.2.3
	fancy-regex@0.14.0
	fastrand@2.3.0
	fd-lock@4.0.4
	filedescriptor@0.8.3
	fixedbitset@0.4.2
	flate2@1.1.2
	fnv@1.0.7
	foldhash@0.1.5
	form_urlencoded@1.2.1
	futf@0.1.5
	futures-channel@0.3.31
	futures-core@0.3.31
	futures-io@0.3.31
	futures-macro@0.3.31
	futures-sink@0.3.31
	futures-task@0.3.31
	futures-timer@3.0.3
	futures-util@0.3.31
	fuzzy-matcher@0.3.7
	fxhash@0.2.1
	generator@0.8.5
	generic-array@0.14.7
	gethostname@0.4.3
	getrandom@0.2.16
	getrandom@0.3.3
	gimli@0.31.1
	h2@0.4.11
	hashbrown@0.14.5
	hashbrown@0.15.4
	heck@0.5.0
	hermit-abi@0.5.2
	hmac@0.12.1
	hnsw_rs@0.3.2
	html5ever@0.27.0
	html5ever@0.29.1
	html_to_markdown@0.1.0
	http-body-util@0.1.3
	http-body@1.0.1
	http@1.3.1
	httparse@1.10.1
	httpdate@1.0.3
	hyper-rustls@0.27.7
	hyper-util@0.1.14
	hyper@1.6.0
	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@2.10.0
	inquire@0.7.5
	io-uring@0.7.8
	ipnet@2.11.0
	iri-string@0.7.8
	is-terminal@0.4.16
	is_terminal_polyfill@1.70.1
	itertools@0.13.0
	itoa@1.0.15
	jiff-static@0.2.15
	jiff@0.2.15
	js-sys@0.3.77
	json-patch@4.0.0
	jsonptr@0.7.1
	lazy_static@1.5.0
	libc@0.2.174
	libredox@0.1.4
	linux-raw-sys@0.4.15
	linux-raw-sys@0.9.4
	litemap@0.8.0
	lock_api@0.4.13
	log@0.4.27
	loom@0.7.2
	lru-slab@0.1.2
	mac@0.1.1
	mach2@0.4.3
	markup5ever@0.12.1
	markup5ever@0.14.1
	markup5ever_rcdom@0.3.0
	match_token@0.1.0
	matchers@0.1.0
	memchr@2.7.5
	memoffset@0.7.1
	mime@0.3.17
	mime_guess@2.0.5
	minimal-lexical@0.2.1
	miniz_oxide@0.8.9
	mio@0.8.11
	mio@1.0.4
	mmap-rs@0.6.1
	new_debug_unreachable@1.0.6
	newline-converter@0.3.0
	nix@0.26.4
	nom@7.1.3
	nu-ansi-term@0.46.0
	nu-ansi-term@0.50.1
	num-conv@0.1.0
	num-integer@0.1.46
	num-traits@0.2.19
	num_cpus@1.17.0
	num_threads@0.1.7
	objc2-app-kit@0.3.1
	objc2-core-foundation@0.3.1
	objc2-core-graphics@0.3.1
	objc2-encode@4.1.0
	objc2-foundation@0.3.1
	objc2-io-surface@0.3.1
	objc2@0.6.1
	object@0.36.7
	once_cell@1.21.3
	once_cell_polyfill@1.70.1
	onig@6.5.1
	onig_sys@69.9.1
	openssl-probe@0.1.6
	option-ext@0.2.0
	os_info@3.12.0
	os_pipe@1.2.2
	outref@0.5.2
	overload@0.1.1
	parking_lot@0.12.4
	parking_lot_core@0.9.11
	path-absolutize@3.1.1
	path-dedot@3.1.1
	percent-encoding@2.3.1
	petgraph@0.6.5
	phf@0.11.3
	phf_codegen@0.11.3
	phf_generator@0.11.3
	phf_macros@0.11.3
	phf_shared@0.11.3
	pin-project-lite@0.2.16
	pin-utils@0.1.0
	pkg-config@0.3.32
	plist@1.7.2
	portable-atomic-util@0.2.4
	portable-atomic@1.11.1
	potential_utf@0.1.2
	powerfmt@0.2.0
	ppv-lite86@0.2.21
	precomputed-hash@0.1.1
	pretty_assertions@1.4.1
	proc-macro2@1.0.95
	quick-xml@0.37.5
	quinn-proto@0.11.12
	quinn-udp@0.5.13
	quinn@0.11.8
	quote@1.0.40
	r-efi@5.3.0
	rand@0.8.5
	rand@0.9.1
	rand_chacha@0.9.0
	rand_core@0.6.4
	rand_core@0.9.3
	rayon-core@1.12.1
	rayon@1.10.0
	redox_syscall@0.5.13
	redox_users@0.5.0
	reedline@0.40.0
	regex-automata@0.1.10
	regex-automata@0.4.9
	regex-syntax@0.6.29
	regex-syntax@0.8.5
	regex@1.11.1
	reqwest-eventsource@0.6.0
	reqwest@0.12.22
	rgb@0.8.50
	ring@0.17.14
	rust-embed-impl@8.7.2
	rust-embed-utils@8.7.2
	rust-embed@8.7.2
	rust-stemmers@1.2.0
	rustc-demangle@0.1.25
	rustc-hash@2.1.1
	rustix@0.38.44
	rustix@1.0.7
	rustls-native-certs@0.8.1
	rustls-pki-types@1.12.0
	rustls-webpki@0.103.3
	rustls@0.23.28
	rustversion@1.0.21
	ryu@1.0.20
	same-file@1.0.6
	schannel@0.1.27
	scoped-tls@1.0.1
	scopeguard@1.2.0
	scraper@0.23.1
	security-framework-sys@2.14.0
	security-framework@3.2.0
	selectors@0.26.0
	serde@1.0.219
	serde_derive@1.0.219
	serde_json@1.0.140
	serde_urlencoded@0.7.1
	serde_yaml@0.9.34+deprecated
	servo_arc@0.4.1
	sha2@0.10.9
	sharded-slab@0.1.7
	shared_child@1.1.1
	shared_thread@0.1.0
	shell-words@1.1.0
	shlex@1.3.0
	sigchld@0.2.3
	signal-hook-mio@0.2.4
	signal-hook-registry@1.4.5
	signal-hook@0.3.18
	simplelog@0.12.2
	siphasher@1.0.1
	slab@0.4.10
	smallvec@1.15.1
	smawk@0.3.2
	socket2@0.5.10
	stable_deref_trait@1.2.0
	stop-words@0.8.1
	string_cache@0.8.9
	string_cache_codegen@0.5.4
	strip-ansi-escapes@0.2.1
	strsim@0.11.1
	strum@0.26.3
	strum_macros@0.26.4
	subtle@2.6.1
	syn@2.0.104
	sync_wrapper@1.0.2
	synstructure@0.13.2
	syntect@5.2.0
	sys-locale@0.3.2
	sysctl@0.5.5
	tempfile@3.20.0
	tendril@0.4.3
	termcolor@1.4.1
	terminal-colorsaurus@0.4.8
	terminal-trx@0.2.4
	textwrap@0.16.2
	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
	tinystr@0.8.1
	tinyvec@1.9.0
	tinyvec_macros@0.1.1
	tokio-graceful@0.2.2
	tokio-macros@2.5.0
	tokio-rustls@0.26.2
	tokio-stream@0.1.17
	tokio-util@0.7.15
	tokio@1.46.1
	tower-http@0.6.6
	tower-layer@0.3.3
	tower-service@0.3.3
	tower@0.5.2
	tracing-attributes@0.1.30
	tracing-core@0.1.34
	tracing-log@0.2.0
	tracing-subscriber@0.3.19
	tracing@0.1.41
	tree_magic_mini@3.1.6
	try-lock@0.2.5
	typenum@1.18.0
	unicase@2.8.1
	unicode-ident@1.0.18
	unicode-linebreak@0.1.5
	unicode-segmentation@1.12.0
	unicode-width@0.1.14
	unicode-width@0.2.1
	unsafe-libyaml@0.2.11
	untrusted@0.9.0
	unty@0.0.4
	url@2.5.4
	urlencoding@2.1.3
	utf-8@0.7.6
	utf8_iter@1.0.4
	utf8parse@0.2.2
	uuid@1.17.0
	valuable@0.1.1
	version_check@0.9.5
	vsimd@0.8.0
	vte@0.14.1
	walkdir@2.5.0
	want@0.3.1
	wasi@0.11.1+wasi-snapshot-preview1
	wasi@0.14.2+wasi-0.2.4
	wasm-bindgen-backend@0.2.100
	wasm-bindgen-futures@0.4.50
	wasm-bindgen-macro-support@0.2.100
	wasm-bindgen-macro@0.2.100
	wasm-bindgen-shared@0.2.100
	wasm-bindgen@0.2.100
	wasm-streams@0.4.2
	wayland-backend@0.3.10
	wayland-client@0.31.10
	wayland-protocols-wlr@0.3.8
	wayland-protocols@0.32.8
	wayland-scanner@0.31.6
	wayland-sys@0.31.6
	web-sys@0.3.77
	web-time@1.1.0
	webpki-roots@1.0.1
	which@8.0.0
	widestring@1.2.0
	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-collections@0.2.0
	windows-core@0.61.2
	windows-future@0.2.1
	windows-implement@0.60.0
	windows-interface@0.59.1
	windows-link@0.1.3
	windows-numerics@0.2.0
	windows-result@0.3.4
	windows-strings@0.4.2
	windows-sys@0.48.0
	windows-sys@0.52.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-threading@0.1.0
	windows@0.48.0
	windows@0.61.3
	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
	winsafe@0.0.19
	wit-bindgen-rt@0.39.0
	wl-clipboard-rs@0.9.2
	writeable@0.6.1
	x11rb-protocol@0.13.1
	x11rb@0.13.1
	xml5ever@0.18.1
	xterm-color@1.0.1
	yansi@1.0.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
	zeroize@1.8.1
	zerotrie@0.2.2
	zerovec-derive@0.11.1
	zerovec@0.11.2
"

RUST_MIN_VER="1.85.0"
inherit cargo

DESCRIPTION="All-in-one LLM CLI: shell assistant, REPL, RAG, agents, multi-provider"
HOMEPAGE="
	https://github.com/sigoden/aichat
"
SRC_URI="
	https://github.com/sigoden/aichat/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"

# Apache-2.0 / MIT dual-licensed at the project root (both LICENSE-*
# files shipped). Per Gentoo convention, leave the choice to the
# consumer via the || ( ) operator.
LICENSE="|| ( Apache-2.0 MIT )"
SLOT="0"
KEYWORDS="~amd64"