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

# Autogenerated by pycargoebuild 0.13.3

EAPI=8

CRATES="
	addr2line@0.21.0
	adler@1.0.2
	aho-corasick@1.1.3
	alsa-sys@0.3.1
	alsa@0.9.0
	android-tzdata@0.1.1
	android_system_properties@0.1.5
	ansi_colours@1.2.2
	anstream@0.6.13
	anstyle-parse@0.2.3
	anstyle-query@1.0.2
	anstyle-wincon@3.0.2
	anstyle@1.0.6
	anyhow@1.0.81
	arboard@3.3.2
	arrayvec@0.7.4
	async-recursion@1.1.0
	async-trait@0.1.79
	attribute-derive-macro@0.9.1
	attribute-derive@0.9.1
	auto_impl@1.2.0
	autocfg@1.2.0
	backtrace@0.3.71
	base64@0.21.7
	base64@0.22.0
	bincode@1.3.3
	bindgen@0.65.1
	bindgen@0.69.4
	bit-set@0.5.3
	bit-vec@0.6.3
	bit_field@0.10.2
	bitflags@1.3.2
	bitflags@2.5.0
	block-buffer@0.10.4
	block@0.1.6
	bufreaderwriter@0.2.4
	bumpalo@3.15.4
	bytemuck@1.15.0
	byteorder@1.5.0
	bytes@1.6.0
	calamine@0.24.0
	camino@1.1.6
	cc@1.1.13
	cesu8@1.1.0
	cexpr@0.6.0
	cfg-if@0.1.10
	cfg-if@1.0.0
	cfg_aliases@0.1.1
	chrono@0.4.37
	ciborium-io@0.2.2
	ciborium-ll@0.2.2
	ciborium@0.2.2
	clang-sys@1.7.0
	clap@4.5.4
	clap_builder@4.5.2
	clap_derive@4.5.4
	clap_lex@0.7.0
	clipboard-win@5.3.0
	cocoa-foundation@0.1.2
	cocoa@0.20.2
	codepage@0.1.1
	collection_literals@1.0.1
	color-backtrace@0.6.1
	color_quant@1.1.0
	colorchoice@1.0.0
	colored@2.1.0
	combine@4.6.6
	comrak@0.22.0
	config@0.14.0
	console@0.15.8
	console_error_panic_hook@0.1.7
	const_format@0.2.32
	const_format_proc_macros@0.2.32
	convert_case@0.6.0
	coolor@0.9.0
	core-foundation-sys@0.7.0
	core-foundation-sys@0.8.6
	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.1
	core-media-sys@0.1.2
	core-video-sys@0.1.4
	coreaudio-rs@0.11.3
	coreaudio-sys@0.2.15
	cpal@0.15.3
	cpufeatures@0.2.12
	crc32fast@1.4.0
	crossbeam-channel@0.5.12
	crossbeam-deque@0.8.5
	crossbeam-epoch@0.9.18
	crossbeam-utils@0.8.19
	crossterm@0.27.0
	crossterm_winapi@0.9.1
	crunchy@0.2.2
	crypto-common@0.1.6
	csv-core@0.1.11
	csv@1.3.0
	ctrlc@3.4.4
	darling@0.14.4
	darling_core@0.14.4
	darling_macro@0.14.4
	dashmap@5.5.3
	dasp_sample@0.11.0
	deprecate-until@0.1.1
	deranged@0.3.11
	derive-where@1.2.7
	derive_builder@0.12.0
	derive_builder_core@0.12.0
	derive_builder_macro@0.12.0
	deunicode@1.4.3
	digest@0.10.7
	drain_filter_polyfill@0.1.3
	dunce@1.0.4
	ecow@0.2.2
	either@1.10.0
	encode_unicode@0.3.6
	encoding_rs@0.8.34
	endian-type@0.1.2
	entities@1.0.1
	enum-iterator-derive@1.3.0
	enum-iterator@2.0.0
	equivalent@1.0.1
	errno@0.3.8
	error-code@3.2.0
	exr@1.72.0
	fancy-regex@0.11.0
	fastrand@2.0.2
	fd-lock@4.0.2
	fdeflate@0.3.4
	filetime@0.2.23
	fixedbitset@0.4.2
	flate2@1.0.28
	flume@0.10.14
	flume@0.11.0
	fnv@1.0.7
	foreign-types-macros@0.2.3
	foreign-types-shared@0.1.1
	foreign-types-shared@0.3.1
	foreign-types@0.3.2
	foreign-types@0.5.0
	form_urlencoded@1.2.1
	fsevent-sys@4.1.0
	futures-channel@0.3.30
	futures-core@0.3.30
	futures-executor@0.3.30
	futures-io@0.3.30
	futures-macro@0.3.30
	futures-sink@0.3.30
	futures-task@0.3.30
	futures-util@0.3.30
	futures@0.3.30
	generic-array@0.14.7
	gethostname@0.4.3
	getrandom@0.2.12
	gif@0.13.1
	gimli@0.28.1
	glob@0.3.1
	gloo-net@0.5.0
	gloo-utils@0.2.0
	half@2.4.0
	hashbrown@0.14.3
	heck@0.5.0
	hermit-abi@0.3.9
	hodaun@0.4.1
	home@0.5.9
	hound@3.5.1
	html-escape@0.2.13
	http@0.2.12
	http@1.1.0
	httparse@1.8.0
	iana-time-zone-haiku@0.1.2
	iana-time-zone@0.1.60
	ident_case@1.0.1
	idna@0.5.0
	image@0.24.9
	indexmap@2.2.6
	inotify-sys@0.1.5
	inotify@0.9.6
	integer-sqrt@0.1.5
	interpolator@0.5.0
	inventory@0.3.15
	is-docker@0.2.0
	is-wsl@0.4.0
	itertools@0.12.1
	itoa@1.0.11
	jni-sys@0.3.0
	jni@0.21.1
	jobserver@0.1.32
	jpeg-decoder@0.3.1
	js-sys@0.3.69
	json5@0.4.1
	kqueue-sys@1.0.4
	kqueue@1.0.8
	lazy_static@1.4.0
	lazycell@1.3.0
	lebe@0.5.2
	leptos@0.6.11
	leptos_config@0.6.11
	leptos_dom@0.6.11
	leptos_hot_reload@0.6.11
	leptos_macro@0.6.11
	leptos_meta@0.6.11
	leptos_reactive@0.6.11
	leptos_router@0.6.11
	leptos_server@0.6.11
	libc@0.2.153
	libffi-sys@2.3.0
	libffi@3.2.0
	libloading@0.8.3
	line-wrap@0.2.0
	linear-map@1.2.0
	linked-hash-map@0.5.6
	linux-raw-sys@0.4.13
	lock_api@0.4.11
	lockfree@0.5.1
	log@0.4.21
	lsp-types@0.94.1
	mach2@0.4.2
	malloc_buf@0.0.6
	manyhow-macros@0.10.4
	manyhow@0.10.4
	memchr@2.7.2
	metal@0.18.0
	minimal-lexical@0.2.1
	miniz_oxide@0.7.2
	mio@0.8.11
	mozjpeg-sys@2.2.1
	mozjpeg@0.10.7
	nanorand@0.7.0
	nasm-rs@0.2.5
	ndk-context@0.1.1
	ndk-sys@0.5.0+25.2.9519653
	ndk@0.8.0
	nibble_vec@0.1.0
	nix@0.28.0
	nom@7.1.3
	notify@6.1.1
	num-complex@0.4.6
	num-conv@0.1.0
	num-derive@0.4.2
	num-integer@0.1.46
	num-traits@0.2.18
	num_cpus@1.16.0
	num_enum@0.7.2
	num_enum_derive@0.7.2
	objc-foundation@0.1.1
	objc@0.2.7
	objc_exception@0.1.2
	objc_id@0.1.1
	object@0.32.2
	oboe-sys@0.6.1
	oboe@0.6.1
	once_cell@1.19.0
	onig@6.4.0
	onig_sys@69.8.1
	open@5.1.2
	owned-alloc@0.2.0
	pad-adapter@0.1.1
	parking_lot@0.12.1
	parking_lot_core@0.9.9
	paste@1.0.14
	pathdiff@0.2.1
	pathfinding@4.9.1
	peeking_take_while@0.1.2
	percent-encoding@2.3.1
	pest@2.7.10
	pest_derive@2.7.10
	pest_generator@2.7.10
	pest_meta@2.7.10
	pin-project-internal@1.1.5
	pin-project-lite@0.2.13
	pin-project@1.1.5
	pin-utils@0.1.0
	pkg-config@0.3.30
	plist@1.6.1
	png@0.17.13
	powerfmt@0.2.0
	ppv-lite86@0.2.17
	prettyplease@0.2.17
	primal-check@0.3.3
	proc-macro-crate@3.1.0
	proc-macro-error-attr@1.0.4
	proc-macro-error@1.0.4
	proc-macro-utils@0.8.0
	proc-macro2-diagnostics@0.10.1
	proc-macro2@1.0.79
	qoi@0.4.1
	quick-xml@0.31.0
	quote-use-macros@0.8.0
	quote-use@0.8.0
	quote@1.0.35
	radix_trie@0.2.1
	rand@0.8.5
	rand_chacha@0.3.1
	rand_core@0.6.4
	rawrrr@0.2.1
	rayon-core@1.12.1
	rayon@1.10.0
	redox_syscall@0.4.1
	regex-automata@0.4.6
	regex-syntax@0.8.3
	regex@1.10.4
	rgb@0.8.37
	ring@0.17.8
	rstml@0.11.2
	rustc-demangle@0.1.23
	rustc-hash@1.1.0
	rustfft@6.2.0
	rustix@0.38.32
	rustls-pemfile@2.1.2
	rustls-pki-types@1.4.1
	rustls-webpki@0.102.2
	rustls@0.23.4
	rustyline@14.0.0
	ryu@1.0.17
	same-file@1.0.6
	scopeguard@1.2.0
	self_cell@1.0.3
	semver@1.0.23
	send_wrapper@0.6.0
	serde-wasm-bindgen@0.6.5
	serde@1.0.197
	serde_derive@1.0.197
	serde_json@1.0.115
	serde_qs@0.12.0
	serde_repr@0.1.18
	serde_spanned@0.6.5
	serde_test@1.0.176
	serde_tuple@0.5.0
	serde_tuple_macros@0.5.0
	serde_yaml@0.9.34+deprecated
	server_fn@0.6.11
	server_fn_macro@0.6.11
	server_fn_macro_default@0.6.9
	sha2@0.10.8
	shell-words@1.1.0
	shlex@1.3.0
	signal-hook-mio@0.2.3
	signal-hook-registry@1.4.1
	signal-hook@0.3.17
	simd-adler32@0.3.7
	simple_excel_writer@0.2.0
	slab@0.4.9
	slotmap@1.0.7
	slug@0.1.5
	smallvec@1.13.2
	spin@0.9.8
	strength_reduce@0.2.4
	strsim@0.10.0
	strsim@0.11.0
	subtle@2.5.0
	syn@1.0.109
	syn@2.0.55
	syn_derive@0.1.8
	syntect@5.2.0
	tempfile@3.10.1
	termcolor@1.4.1
	terminal-light@1.4.0
	terminal_size@0.3.0
	thiserror-impl@1.0.58
	thiserror@1.0.58
	thread_local@1.1.8
	tiff@0.9.1
	time-core@0.1.2
	time-macros@0.2.18
	time@0.3.36
	tinyvec@1.6.0
	tinyvec_macros@0.1.1
	tokio-util@0.7.10
	tokio@1.37.0
	toml@0.8.12
	toml_datetime@0.6.5
	toml_edit@0.21.1
	toml_edit@0.22.9
	tower-layer@0.3.2
	tower-lsp-macros@0.9.0
	tower-lsp@0.20.0
	tower-service@0.3.2
	tower@0.4.13
	tracing-attributes@0.1.27
	tracing-core@0.1.32
	tracing@0.1.40
	transpose@0.2.3
	trash@4.1.0
	typed-arena@2.0.2
	typed-builder-macro@0.18.1
	typed-builder@0.18.1
	typenum@1.17.0
	ucd-trie@0.1.6
	uiua-nokhwa-bindings-linux@0.1.0
	uiua-nokhwa-bindings-macos@0.2.1
	uiua-nokhwa-bindings-windows@0.4.0
	uiua-nokhwa-core@0.1.2
	uiua-nokhwa@0.10.5
	unicode-bidi@0.3.15
	unicode-ident@1.0.12
	unicode-normalization@0.1.23
	unicode-segmentation@1.11.0
	unicode-width@0.1.11
	unicode-xid@0.2.4
	unicode_categories@0.1.1
	unsafe-libyaml@0.2.11
	untrusted@0.9.0
	url@2.5.0
	urlencoding@2.1.3
	utf8-width@0.1.7
	utf8parse@0.2.1
	uuid@1.8.0
	v4l2-sys-mit@0.3.0
	v4l@0.14.0
	version_check@0.9.4
	viuer@0.7.1
	walkdir@2.5.0
	wasi@0.11.0+wasi-snapshot-preview1
	wasm-bindgen-backend@0.2.92
	wasm-bindgen-futures@0.4.42
	wasm-bindgen-macro-support@0.2.92
	wasm-bindgen-macro@0.2.92
	wasm-bindgen-shared@0.2.92
	wasm-bindgen@0.2.92
	wasm-streams@0.4.0
	web-sys@0.3.69
	webpki-roots@0.26.1
	weezl@0.1.8
	which@4.4.2
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.6
	winapi-x86_64-pc-windows-gnu@0.4.0
	winapi@0.3.9
	windows-core@0.52.0
	windows-core@0.54.0
	windows-result@0.1.0
	windows-sys@0.45.0
	windows-sys@0.48.0
	windows-sys@0.52.0
	windows-targets@0.42.2
	windows-targets@0.48.5
	windows-targets@0.52.4
	windows@0.43.0
	windows@0.44.0
	windows@0.54.0
	windows_aarch64_gnullvm@0.42.2
	windows_aarch64_gnullvm@0.48.5
	windows_aarch64_gnullvm@0.52.4
	windows_aarch64_msvc@0.42.2
	windows_aarch64_msvc@0.48.5
	windows_aarch64_msvc@0.52.4
	windows_i686_gnu@0.42.2
	windows_i686_gnu@0.48.5
	windows_i686_gnu@0.52.4
	windows_i686_msvc@0.42.2
	windows_i686_msvc@0.48.5
	windows_i686_msvc@0.52.4
	windows_x86_64_gnu@0.42.2
	windows_x86_64_gnu@0.48.5
	windows_x86_64_gnu@0.52.4
	windows_x86_64_gnullvm@0.42.2
	windows_x86_64_gnullvm@0.48.5
	windows_x86_64_gnullvm@0.52.4
	windows_x86_64_msvc@0.42.2
	windows_x86_64_msvc@0.48.5
	windows_x86_64_msvc@0.52.4
	winnow@0.5.40
	winnow@0.6.5
	x11rb-protocol@0.13.0
	x11rb@0.13.0
	xdg@2.5.2
	xterm-query@0.4.0
	xxhash-rust@0.8.10
	yaml-rust@0.4.5
	yansi@1.0.1
	zeroize@1.7.0
	zip@0.5.13
	zip@0.6.6
	zune-inflate@0.2.54
"

inherit cargo

DESCRIPTION="A stack-based array programming language"
HOMEPAGE="'
	https://www.uiua.org/
	https://github.com/uiua-lang/uiua
"
SRC_URI="
	https://github.com/uiua-lang/uiua/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 BSD-2 BSD Boost-1.0 CC0-1.0 IJG ISC LGPL-3+ MIT MPL-2.0
	Unicode-DFS-2016 ZLIB
"
SLOT="0"
KEYWORDS="~amd64"
IUSE="audio webcam"

RDEPEND="
	x11-libs/libX11
	audio? (
		virtual/libudev
		media-libs/alsa-lib
		virtual/pkgconfig
	)
	webcam? ( media-libs/libjpeg-turbo )
"

src_configure() {
	local myfeatures=(
		$(usev audio)
		$(usev webcam)
	)
# 	cargo_src_configure --no-default-features
}