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

EAPI=8

V8_PV="134.5.0"

CRATES="
	Inflector@0.11.4
	addr2line@0.24.2
	adler2@2.0.0
	adler@1.0.2
	aead-gcm-stream@0.4.0
	aead@0.5.2
	aes-gcm@0.10.3
	aes-kw@0.2.1
	aes@0.8.3
	ahash@0.8.11
	aho-corasick@1.1.3
	alloc-no-stdlib@2.0.4
	alloc-stdlib@0.2.2
	allocator-api2@0.2.21
	android_system_properties@0.1.5
	anstream@0.6.15
	anstyle-parse@0.2.3
	anstyle-query@1.0.2
	anstyle-wincon@3.0.2
	anstyle@1.0.8
	anyhow@1.0.95
	arbitrary@1.4.1
	arrayvec@0.7.4
	ascii@1.1.0
	ash@0.38.0+1.3.281
	asn1-rs-derive@0.4.0
	asn1-rs-impl@0.1.0
	asn1-rs@0.5.2
	ast_node@3.0.0
	async-compression@0.4.11
	async-once-cell@0.5.4
	async-recursion@1.1.1
	async-stream-impl@0.3.5
	async-stream@0.3.5
	async-trait@0.1.80
	asynchronous-codec@0.7.0
	atomic-waker@1.1.2
	auto_impl@1.2.0
	autocfg@1.3.0
	axum-core@0.4.5
	axum@0.7.5
	az@1.2.1
	backtrace@0.3.74
	base16ct@0.2.0
	base32@0.5.1
	base64-simd@0.7.0
	base64-simd@0.8.0
	base64@0.21.7
	base64@0.22.1
	base64ct@1.6.0
	bencher@0.1.5
	better_scoped_tls@1.0.0
	bincode@1.3.3
	bindgen@0.69.5
	bindgen@0.70.1
	bit-set@0.5.3
	bit-set@0.8.0
	bit-vec@0.6.3
	bit-vec@0.8.0
	bitflags@1.3.2
	bitflags@2.8.0
	bitvec@1.0.1
	blake2@0.10.6
	block-buffer@0.10.4
	block-padding@0.3.3
	block@0.1.6
	boxed_error@0.2.3
	brotli-decompressor@4.0.1
	brotli@6.0.0
	bstr@1.9.1
	bumpalo@3.17.0
	bytemuck@1.21.0
	bytemuck_derive@1.8.1
	byteorder-lite@0.1.0
	byteorder@1.5.0
	bytes@1.9.0
	cache_control@0.2.0
	capacity_builder@0.1.3
	capacity_builder@0.5.0
	capacity_builder_macros@0.3.0
	caseless@0.2.1
	castaway@0.2.3
	cbc@0.1.2
	cc@1.2.3
	cexpr@0.6.0
	cfg-if@1.0.0
	cfg_aliases@0.2.1
	chrono@0.4.37
	cipher@0.4.4
	clang-sys@1.8.1
	clap@4.5.30
	clap_builder@4.5.30
	clap_complete@4.5.45
	clap_complete_fig@4.5.2
	clap_lex@0.7.4
	clipboard-win@5.3.0
	cmake@0.1.50
	codespan-reporting@0.11.1
	color-print-proc-macro@0.3.5
	color-print@0.3.5
	colorchoice@1.0.0
	compact_str@0.7.1
	comrak@0.29.0
	console_static_text@0.8.3
	const-oid@0.9.6
	convert_case@0.4.0
	cooked-waker@5.0.0
	core-foundation-sys@0.8.6
	core-foundation@0.9.4
	core-graphics-types@0.1.3
	countme@3.0.1
	cpufeatures@0.2.12
	cranelift-bforest@0.116.1
	cranelift-bitset@0.116.1
	cranelift-codegen-meta@0.116.1
	cranelift-codegen-shared@0.116.1
	cranelift-codegen@0.116.1
	cranelift-control@0.116.1
	cranelift-entity@0.116.1
	cranelift-frontend@0.116.1
	cranelift-isle@0.116.1
	cranelift-module@0.116.1
	cranelift-native@0.116.1
	cranelift@0.116.1
	crc-catalog@1.1.1
	crc32fast@1.4.2
	crc@2.1.0
	crossbeam-channel@0.5.12
	crossbeam-deque@0.8.5
	crossbeam-epoch@0.9.18
	crossbeam-queue@0.3.11
	crossbeam-utils@0.8.20
	crossterm@0.28.1
	crossterm_winapi@0.9.1
	crypto-bigint@0.5.5
	crypto-common@0.1.6
	css_dataset@0.4.1
	ctr@0.9.2
	curve25519-dalek-derive@0.1.1
	curve25519-dalek@4.1.3
	darling@0.20.10
	darling_core@0.20.10
	darling_macro@0.20.10
	dashmap@5.5.3
	data-encoding@2.5.0
	data-url@0.3.1
	debug-ignore@1.0.5
	debugid@0.8.0
	deno-tower-lsp-macros@0.11.3
	deno_ast@0.46.2
	deno_cache_dir@0.18.0
	deno_config@0.50.0
	deno_core@0.340.0
	deno_core_icudata@0.74.0
	deno_doc@0.169.0
	deno_error@0.5.6
	deno_error_macro@0.5.6
	deno_graph@0.89.2
	deno_lint@0.74.0
	deno_lockfile@0.24.0
	deno_media_type@0.2.8
	deno_native_certs@0.3.0
	deno_npm@0.27.2
	deno_ops@0.216.0
	deno_package_json@0.5.2
	deno_path_util@0.3.2
	deno_semver@0.7.1
	deno_task_shell@0.20.2
	deno_terminal@0.1.1
	deno_terminal@0.2.2
	deno_tower_lsp@0.4.3
	deno_unsync@0.4.2
	deno_whoami@0.1.0
	denokv_proto@0.9.0
	denokv_remote@0.9.0
	denokv_sqlite@0.9.0
	der-parser@8.2.0
	der@0.7.9
	der_derive@0.7.3
	deranged@0.3.11
	derive_arbitrary@1.4.1
	derive_builder@0.20.0
	derive_builder_core@0.20.0
	derive_builder_macro@0.20.0
	derive_more@0.99.17
	deunicode@1.4.3
	dhat@0.3.3
	diff@0.1.13
	digest@0.10.7
	dirs-sys@0.4.1
	dirs@5.0.1
	displaydoc@0.2.4
	dissimilar@1.0.4
	dlopen2@0.6.1
	dlopen2_derive@0.4.0
	document-features@0.2.10
	dotenvy@0.15.7
	dprint-core-macros@0.1.0
	dprint-core@0.67.4
	dprint-plugin-json@0.20.0
	dprint-plugin-jupyter@0.2.0
	dprint-plugin-markdown@0.18.0
	dprint-plugin-typescript@0.94.0
	dprint-swc-ext@0.22.1
	dsa@0.6.3
	dunce@1.0.5
	dyn-clone@1.0.17
	ecb@0.1.2
	ecdsa@0.16.9
	ecow@0.2.3
	ed25519-dalek@2.1.1
	ed25519@2.2.3
	ed448-goldilocks@0.8.3
	editpe@0.1.0
	either@1.10.0
	elliptic-curve@0.13.8
	encoding_rs@0.8.33
	endian-type@0.1.2
	entities@1.0.1
	enum-as-inner@0.6.0
	env_logger@0.10.0
	equivalent@1.0.1
	errno@0.3.8
	error-code@3.2.0
	error_reporter@1.0.0
	eszip@0.83.0
	fallible-iterator@0.3.0
	fallible-streaming-iterator@0.1.9
	fancy-regex@0.10.0
	fast-socks5@0.9.6
	faster-hex@0.9.0
	fastrand@2.0.2
	fastwebsockets@0.8.0
	fd-lock@4.0.2
	fdeflate@0.3.4
	ff@0.13.0
	fiat-crypto@0.1.20
	fiat-crypto@0.2.7
	file_test_runner@0.7.3
	filetime@0.2.23
	fixedbitset@0.4.2
	flaky_test@0.2.2
	flaky_test_impl@0.2.2
	flate2@1.0.35
	float-cmp@0.9.0
	fluent-uri@0.1.4
	fnv@1.0.7
	foldhash@0.1.4
	foreign-types-macros@0.2.3
	foreign-types-shared@0.3.1
	foreign-types@0.5.0
	form_urlencoded@1.2.1
	fqdn@0.3.4
	from_variant@2.0.0
	fs3@0.5.0
	fsevent-sys@4.1.0
	fslock@0.2.1
	funty@2.0.0
	futures-channel@0.3.31
	futures-core@0.3.31
	futures-executor@0.3.30
	futures-io@0.3.31
	futures-macro@0.3.31
	futures-sink@0.3.31
	futures-task@0.3.31
	futures-util@0.3.31
	futures@0.3.30
	generator@0.8.4
	generic-array@0.14.7
	getrandom@0.2.14
	ghash@0.5.1
	gimli@0.31.1
	gl_generator@0.14.0
	glibc_version@0.1.2
	glob@0.3.1
	globset@0.4.14
	glow@0.16.0
	glutin_wgl_sys@0.6.1
	gpu-alloc-types@0.3.0
	gpu-alloc@0.6.0
	gpu-allocator@0.27.0
	gpu-descriptor-types@0.2.0
	gpu-descriptor@0.3.0
	group@0.13.0
	gzip-header@1.0.0
	h2@0.3.26
	h2@0.4.7
	halfbrown@0.2.5
	handlebars@6.1.0
	hashbrown@0.12.3
	hashbrown@0.14.5
	hashbrown@0.15.2
	hashlink@0.8.4
	hashlink@0.9.1
	hdrhistogram@7.5.4
	heck@0.4.1
	heck@0.5.0
	hermit-abi@0.3.9
	hex@0.4.3
	hexf-parse@0.2.1
	hickory-client@0.25.0-alpha.4
	hickory-proto@0.25.0-alpha.4
	hickory-resolver@0.25.0-alpha.4
	hickory-server@0.25.0-alpha.4
	hipstr@0.6.0
	hkdf@0.12.4
	hmac@0.12.1
	home@0.5.9
	hostname@0.3.1
	hstr@1.0.0
	html-escape@0.2.13
	http-body-util@0.1.2
	http-body@0.4.6
	http-body@1.0.0
	http@0.2.12
	http@1.1.0
	httparse@1.10.0
	httpdate@1.0.3
	humantime@2.1.0
	hyper-rustls@0.27.2
	hyper-timeout@0.5.2
	hyper-util@0.1.10
	hyper@0.14.28
	hyper@1.6.0
	icu_collections@1.5.0
	icu_locid@1.5.0
	icu_locid_transform@1.5.0
	icu_locid_transform_data@1.5.0
	icu_normalizer@1.5.0
	icu_normalizer_data@1.5.0
	icu_properties@1.5.1
	icu_properties_data@1.5.0
	icu_provider@1.5.0
	icu_provider_macros@1.5.0
	ident_case@1.0.1
	idna@1.0.3
	idna_adapter@1.2.0
	if_chain@1.0.2
	ignore@0.4.20
	image@0.25.4
	import_map@0.21.0
	indexmap@1.9.3
	indexmap@2.7.1
	inotify-sys@0.1.5
	inotify@0.9.6
	inout@0.1.3
	ipconfig@0.3.2
	ipnet@2.9.0
	ipnetwork@0.20.0
	is-docker@0.2.0
	is-macro@0.3.5
	is-terminal@0.4.12
	is-wsl@0.4.0
	is_terminal_polyfill@1.70.1
	itertools@0.10.5
	itertools@0.13.0
	itoa@1.0.14
	jni-sys@0.3.0
	jobserver@0.1.32
	js-sys@0.3.77
	jsonc-parser@0.26.2
	junction@1.2.0
	jupyter-serde@0.4.0
	k256@0.13.3
	keccak@0.1.5
	khronos-egl@6.0.0
	khronos_api@3.1.0
	kqueue-sys@1.0.4
	kqueue@1.0.8
	lazy-regex-proc_macros@3.1.0
	lazy-regex@3.1.0
	lazy_static@1.5.0
	lazycell@1.3.0
	lcms2-sys@4.0.5
	lcms2@6.1.0
	libc@0.2.168
	libffi-sys@2.3.0
	libffi@3.2.0
	libloading@0.7.4
	libloading@0.8.5
	libm@0.2.8
	libredox@0.1.3
	libsqlite3-sys@0.30.1
	libsui@0.5.0
	libuv-sys-lite@1.48.2
	libz-sys@1.1.20
	linux-raw-sys@0.4.13
	litemap@0.7.3
	litrs@0.4.1
	lock_api@0.4.11
	log@0.4.21
	loom@0.7.2
	lsp-types@0.97.0
	malloc_buf@0.0.6
	malva@0.11.0
	markup_fmt@0.18.0
	match_cfg@0.1.0
	matchers@0.1.0
	matchit@0.7.3
	md-5@0.10.6
	md4@0.10.2
	memchr@2.7.4
	memmap2@0.9.5
	memmem@0.1.1
	memoffset@0.9.1
	metal@0.31.0
	mime@0.3.17
	minimal-lexical@0.2.1
	miniz_oxide@0.7.2
	miniz_oxide@0.8.4
	mintex@0.1.3
	mio@0.8.11
	mio@1.0.3
	moka@0.12.10
	monch@0.5.0
	multimap@0.8.3
	naga@24.0.0
	napi-build@1.2.1
	napi-sys@2.2.2
	ndk-sys@0.5.0+25.2.9519653
	netif@0.1.6
	new_debug_unreachable@1.0.6
	nibble_vec@0.1.0
	nix@0.27.1
	nom@5.1.3
	nom@7.1.3
	notify@6.1.1
	ntapi@0.4.1
	ntest_timeout@0.9.3
	nu-ansi-term@0.46.0
	num-bigint-dig@0.8.4
	num-bigint@0.4.4
	num-conv@0.1.0
	num-integer@0.1.46
	num-iter@0.1.44
	num-traits@0.2.19
	num_cpus@1.16.0
	objc@0.2.7
	object@0.36.3
	oid-registry@0.6.1
	once_cell@1.20.2
	opaque-debug@0.3.1
	open@5.1.2
	openssl-probe@0.1.5
	opentelemetry-http@0.27.0
	opentelemetry-otlp@0.27.0
	opentelemetry-proto@0.27.0
	opentelemetry-semantic-conventions@0.27.0
	opentelemetry@0.27.0
	opentelemetry_sdk@0.27.1
	option-ext@0.2.0
	ordered-float@2.10.1
	ordered-float@4.6.0
	os_pipe@1.1.5
	outref@0.1.0
	outref@0.5.1
	overload@0.1.1
	p224@0.13.2
	p256@0.13.2
	p384@0.13.0
	p521@0.13.3
	parking_lot@0.12.3
	parking_lot_core@0.9.9
	password-hash@0.5.0
	paste@1.0.14
	path-clean@0.1.0
	path-dedot@3.1.1
	pathdiff@0.2.1
	pbkdf2@0.12.2
	pem-rfc7468@0.7.0
	percent-encoding@2.3.1
	pest@2.7.15
	pest_derive@2.7.15
	pest_generator@2.7.15
	pest_meta@2.7.15
	petgraph@0.6.4
	phf@0.11.2
	phf_generator@0.11.2
	phf_macros@0.11.2
	phf_shared@0.11.2
	pin-project-internal@1.1.5
	pin-project-lite@0.2.14
	pin-project@1.1.5
	pin-utils@0.1.0
	pkcs1@0.7.5
	pkcs5@0.7.1
	pkcs8@0.10.2
	pkg-config@0.3.30
	png@0.17.13
	polyval@0.6.2
	portable-atomic@1.10.0
	powerfmt@0.2.0
	ppv-lite86@0.2.17
	prefix-trie@0.5.1
	presser@0.3.1
	pretty_assertions@1.4.0
	pretty_yaml@0.5.0
	prettyplease@0.2.17
	primeorder@0.13.6
	proc-macro-crate@3.2.0
	proc-macro-rules-macros@0.4.0
	proc-macro-rules@0.4.0
	proc-macro2@1.0.86
	profiling@1.0.15
	prost-build@0.13.3
	prost-derive@0.13.3
	prost-types@0.13.3
	prost@0.13.3
	psm@0.1.21
	ptr_meta@0.3.0
	ptr_meta_derive@0.3.0
	pulldown-cmark@0.11.2
	quick-error@1.2.3
	quick-junit@0.3.6
	quick-xml@0.31.0
	quinn-proto@0.11.9
	quinn-udp@0.5.8
	quinn@0.11.6
	quote@1.0.37
	radium@0.7.0
	radix_fmt@1.0.0
	radix_trie@0.2.1
	raffia@0.9.1
	raffia_macro@0.1.1
	rand@0.8.5
	rand_chacha@0.3.1
	rand_core@0.6.4
	range-alloc@0.1.3
	raw-window-handle@0.6.1
	rayon-core@1.12.1
	rayon@1.10.0
	redox_syscall@0.4.1
	redox_users@0.4.5
	ref-cast-impl@1.0.22
	ref-cast@1.0.22
	regalloc2@0.11.1
	regex-automata@0.1.10
	regex-automata@0.4.6
	regex-syntax@0.6.29
	regex-syntax@0.8.3
	regex@1.10.6
	relative-path@1.9.2
	reqwest@0.12.5
	resolv-conf@0.7.0
	rfc6979@0.4.0
	ring@0.17.8
	ripemd@0.1.3
	ron@0.8.1
	rowan@0.15.15
	rsa@0.9.6
	runtimelib@0.19.0
	rusqlite@0.32.0
	rustc-demangle@0.1.24
	rustc-hash@1.1.0
	rustc-hash@2.1.1
	rustc_version@0.2.3
	rustc_version@0.4.0
	rusticata-macros@4.1.0
	rustix@0.38.34
	rustls-native-certs@0.7.0
	rustls-pemfile@2.1.2
	rustls-pki-types@1.8.0
	rustls-tokio-stream@0.3.0
	rustls-webpki@0.102.5
	rustls@0.23.11
	rustversion@1.0.15
	rustyline-derive@0.7.0
	rustyline@13.0.0
	ryu-js@1.0.1
	ryu@1.0.17
	saffron@0.1.0
	salsa20@0.10.2
	same-file@1.0.6
	schannel@0.1.23
	scoped-tls@1.0.1
	scopeguard@1.2.0
	scrypt@0.11.0
	sec1@0.7.3
	security-framework-sys@2.10.0
	security-framework@2.10.0
	semver-parser@0.7.0
	semver@0.9.0
	semver@1.0.14
	serde-value@0.7.0
	serde-wasm-bindgen@0.5.0
	serde@1.0.217
	serde_bytes@0.11.14
	serde_derive@1.0.217
	serde_json@1.0.122
	serde_repr@0.1.16
	serde_urlencoded@0.7.1
	serde_v8@0.249.0
	serdect@0.2.0
	sha1@0.10.6
	sha1_smol@1.0.0
	sha2@0.10.8
	sha3@0.10.8
	sharded-slab@0.1.7
	shell-escape@0.1.5
	shellexpand@3.1.0
	shlex@1.3.0
	signal-hook-mio@0.2.4
	signal-hook-registry@1.4.1
	signal-hook@0.3.17
	signature@2.2.0
	simd-abstraction@0.7.1
	simd-adler32@0.3.7
	simd-json@0.14.0
	simdutf8@0.1.4
	siphasher@0.3.11
	slab@0.4.9
	slotmap@1.0.7
	slug@0.1.5
	sm3@0.4.2
	smallvec@1.13.2
	smartstring@1.0.1
	socket2@0.5.5
	sourcemap@8.0.1
	sourcemap@9.0.0
	spin@0.9.8
	spirv@0.3.0+sdk-1.3.268.0
	spki@0.7.3
	sptr@0.3.2
	sqlformat@0.3.2
	stable_deref_trait@1.2.0
	stacker@0.1.15
	static_assertions@1.1.0
	string_capacity@0.1.5
	string_enum@1.0.0
	stringcase@0.3.0
	strip-ansi-escapes@0.2.0
	strsim@0.11.1
	strum@0.25.0
	strum@0.26.3
	strum_macros@0.25.3
	strum_macros@0.26.4
	subtle@2.5.0
	swc_allocator@4.0.0
	swc_atoms@5.0.0
	swc_bundler@11.0.0
	swc_cached@2.0.0
	swc_common@8.0.0
	swc_config@2.0.0
	swc_config_macro@1.0.0
	swc_ecma_ast@8.0.0
	swc_ecma_codegen@8.0.1
	swc_ecma_codegen_macros@1.0.1
	swc_ecma_loader@8.0.0
	swc_ecma_parser@10.0.0
	swc_ecma_transforms_base@11.1.1
	swc_ecma_transforms_classes@11.0.0
	swc_ecma_transforms_macros@1.0.0
	swc_ecma_transforms_optimization@11.0.0
	swc_ecma_transforms_proposal@11.0.1
	swc_ecma_transforms_react@12.0.0
	swc_ecma_transforms_typescript@12.0.0
	swc_ecma_utils@11.0.0
	swc_ecma_visit@8.0.0
	swc_eq_ignore_macros@1.0.0
	swc_fast_graph@9.0.0
	swc_graph_analyzer@8.0.0
	swc_macros_common@0.3.13
	swc_macros_common@1.0.0
	swc_parallel@1.2.0
	swc_visit@2.0.0
	swc_visit_macros@0.5.13
	syn@1.0.109
	syn@2.0.87
	sync_wrapper@1.0.1
	synstructure@0.12.6
	synstructure@0.13.1
	sys_traits@0.1.8
	tagptr@0.2.0
	tap@1.0.1
	tar@0.4.40
	target-lexicon@0.13.2
	tempfile@3.10.1
	termcolor@1.4.1
	terminal_size@0.4.1
	text-size@1.1.0
	text_lines@0.6.0
	thiserror-impl@1.0.69
	thiserror-impl@2.0.3
	thiserror@1.0.69
	thiserror@2.0.3
	thousands@0.2.0
	thread_local@1.1.8
	time-core@0.1.2
	time-macros@0.2.18
	time@0.3.36
	tiny_pretty@0.2.0
	tinystr@0.7.6
	tinyvec@1.6.0
	tinyvec_macros@0.1.1
	tokio-eld@0.2.0
	tokio-macros@2.2.0
	tokio-metrics@0.3.1
	tokio-rustls@0.26.0
	tokio-socks@0.5.1
	tokio-stream@0.1.16
	tokio-util@0.7.10
	tokio@1.36.0
	toml@0.5.11
	toml_datetime@0.6.8
	toml_edit@0.22.23
	tonic@0.12.3
	tower-http@0.6.1
	tower-layer@0.3.3
	tower-service@0.3.3
	tower@0.4.13
	tower@0.5.2
	tracing-attributes@0.1.28
	tracing-core@0.1.33
	tracing-log@0.2.0
	tracing-opentelemetry@0.28.0
	tracing-subscriber@0.3.19
	tracing@0.1.41
	triomphe@0.1.13
	try-lock@0.2.5
	twox-hash@1.6.3
	typed-arena@2.0.2
	typenum@1.17.0
	ucd-trie@0.1.6
	unic-char-property@0.9.0
	unic-char-range@0.9.0
	unic-common@0.9.0
	unic-ucd-ident@0.9.0
	unic-ucd-version@0.9.0
	unicase@2.7.0
	unicode-id-start@1.2.0
	unicode-id@0.3.4
	unicode-ident@1.0.12
	unicode-normalization@0.1.23
	unicode-segmentation@1.11.0
	unicode-width@0.1.13
	unicode-width@0.2.0
	unicode-xid@0.2.6
	unicode_categories@0.1.1
	universal-hash@0.5.1
	untrusted@0.9.0
	url@2.5.4
	urlpattern@0.3.0
	utf-8@0.7.6
	utf16_iter@1.0.5
	utf8-width@0.1.7
	utf8_iter@1.0.4
	utf8parse@0.2.1
	uuid@1.8.0
	v8@${V8_PV}
	v8_valueserializer@0.1.1
	valuable@0.1.0
	value-trait@0.10.0
	vcpkg@0.2.15
	version_check@0.9.4
	vsimd@0.8.0
	vte@0.11.1
	vte@0.13.1
	vte_generate_state_changes@0.1.1
	walkdir@2.3.2
	want@0.3.1
	wasi@0.11.0+wasi-snapshot-preview1
	wasite@0.1.0
	wasm-bindgen-backend@0.2.100
	wasm-bindgen-futures@0.4.42
	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.0
	wasm_dep_analyzer@0.2.0
	web-sys@0.3.77
	web-time@1.1.0
	web-transport-proto@0.2.3
	webpki-root-certs@0.26.6
	webpki-roots@0.26.1
	wgpu-core@24.0.0
	wgpu-hal@24.0.0
	wgpu-types@24.0.0
	which@6.0.1
	whoami@1.5.1
	widestring@1.1.0
	win32job@2.0.0
	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.58.0
	windows-implement@0.58.0
	windows-interface@0.58.0
	windows-result@0.2.0
	windows-strings@0.1.0
	windows-sys@0.48.0
	windows-sys@0.52.0
	windows-sys@0.59.0
	windows-targets@0.48.5
	windows-targets@0.52.6
	windows@0.52.0
	windows@0.58.0
	windows_aarch64_gnullvm@0.48.5
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_msvc@0.48.5
	windows_aarch64_msvc@0.52.6
	windows_i686_gnu@0.48.5
	windows_i686_gnu@0.52.6
	windows_i686_gnullvm@0.52.6
	windows_i686_msvc@0.48.5
	windows_i686_msvc@0.52.6
	windows_x86_64_gnu@0.48.5
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnullvm@0.48.5
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_msvc@0.48.5
	windows_x86_64_msvc@0.52.6
	winnow@0.6.15
	winnow@0.7.1
	winreg@0.50.0
	winreg@0.52.0
	winres@0.1.12
	winsafe@0.0.19
	write16@1.0.0
	writeable@0.5.5
	wtf8@0.1.0
	wyz@0.5.1
	x25519-dalek@2.0.1
	x509-parser@0.15.1
	xattr@1.3.1
	xml-rs@0.8.20
	yaml_parser@0.2.1
	yansi@0.5.1
	yoke-derive@0.7.4
	yoke@0.7.4
	zerocopy-derive@0.7.32
	zerocopy@0.7.32
	zerofrom-derive@0.1.4
	zerofrom@0.1.4
	zeroize@1.7.0
	zeroize_derive@1.4.2
	zeromq@0.4.1
	zerovec-derive@0.10.3
	zerovec@0.10.4
	zip@2.1.6
	zstd-safe@6.0.6
	zstd-sys@2.0.10+zstd.1.5.6
	zstd@0.12.4
	zune-core@0.4.12
	zune-jpeg@0.4.13
"

RUST_MIN_VER="1.85.0"

CHECKREQS_MEMORY="32G"

inherit cargo check-reqs multiprocessing

DESCRIPTION="A modern runtime for JavaScript and TypeScript"
HOMEPAGE=""
SRC_URI="
	https://github.com/denoland/deno/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0
	CC0-1.0 ISC MIT MPL-2.0 MPL-2.0 Unicode-3.0 Unicode-DFS-2016 ZLIB
"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND="app-alternatives/ninja
	dev-build/gn"

src_prepare() {
	# Causes build failures
	sed -i "/-Werror/d" "${WORKDIR}/cargo_home/gentoo/v8-${V8_PV}/build/config/compiler/BUILD.gn" || die
	eapply_user
}

src_compile() {
	# The build script will attempt to download and use a pre-built clang binary
	# if it doesn't like the system-wide one. Prevent that by setting DISABLE_CLANG
	V8_FROM_SOURCE=1 \
	DISABLE_CLANG=1 \
	NUM_JOBS=$(makeopts_jobs) \
		cargo_src_compile
}

src_install() {
	dobin "$(cargo_target_dir)/deno"
	dobin "$(cargo_target_dir)/denort"
	dodoc README.md Releases.md
}