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

# Autogenerated by pycargoebuild 0.15.0

EAPI=8

CRATES="
	adler2@2.0.1
	ahash@0.7.8
	ahash@0.8.12
	aho-corasick@1.1.4
	aligned-vec@0.6.4
	aligned@0.4.3
	allocator-api2@0.2.21
	ammonia@4.1.2
	android_system_properties@0.1.5
	anstream@0.6.21
	anstyle-parse@0.2.7
	anstyle-query@1.1.5
	anstyle-wincon@3.0.11
	anstyle@1.0.13
	any_ascii@0.1.7
	anyhow@1.0.100
	arbitrary@1.4.2
	arg_enum_proc_macro@0.3.4
	arrayvec@0.7.6
	as-slice@0.2.1
	assert-json-diff@2.0.2
	atomic-waker@1.1.2
	atty@0.2.14
	autocfg@1.5.0
	av-scenechange@0.14.1
	av1-grain@0.2.5
	avif-parse@1.4.0
	avif-serialize@0.8.6
	axum-core@0.5.6
	axum@0.8.8
	base64-simd@0.7.0
	base64-simd@0.8.0
	base64@0.22.1
	bincode@1.3.3
	bit_field@0.10.3
	bitflags@1.3.2
	bitflags@2.10.0
	bitreader@0.3.11
	bitstream-io@4.9.0
	bitvec@1.0.1
	block-buffer@0.10.4
	block2@0.6.2
	bstr@1.12.1
	build_const@0.2.2
	built@0.8.0
	bumpalo@3.19.0
	bytecheck@0.6.12
	bytecheck_derive@0.6.12
	bytecount@0.6.9
	bytemuck@1.24.0
	byteorder-lite@0.1.0
	byteorder@1.5.0
	bytes@1.11.0
	castaway@0.2.4
	cc@1.2.52
	cedarwood@0.4.6
	cfg-if@1.0.4
	cfg_aliases@0.2.1
	chrono-tz-build@0.3.0
	chrono-tz@0.9.0
	chrono@0.4.42
	clap@3.2.25
	clap@4.5.54
	clap_builder@4.5.54
	clap_complete@4.5.65
	clap_derive@3.2.25
	clap_derive@4.5.49
	clap_lex@0.2.4
	clap_lex@0.7.6
	clap_mangen@0.2.31
	cobs@0.3.0
	codemap@0.1.3
	color_quant@1.1.0
	colorchoice@1.0.4
	colored@3.0.0
	compact_str@0.9.0
	console@0.15.11
	const-str-proc-macro@0.3.2
	const-str@0.3.2
	convert_case@0.6.0
	core-foundation-sys@0.8.7
	core-foundation@0.9.4
	core2@0.4.0
	cow-utils@0.1.3
	cpufeatures@0.2.17
	crc32fast@1.5.0
	crc@1.8.1
	crossbeam-deque@0.8.6
	crossbeam-epoch@0.9.18
	crossbeam-utils@0.8.21
	crunchy@0.2.4
	crypto-common@0.1.7
	cssparser-color@0.1.0
	cssparser-macros@0.6.1
	cssparser@0.33.0
	cssparser@0.35.0
	csv-core@0.1.13
	csv@1.4.0
	ctrlc@3.5.1
	dashmap@5.5.3
	data-encoding@2.9.0
	data-url@0.1.1
	deranged@0.5.5
	deunicode@1.6.2
	digest@0.10.7
	dispatch2@0.3.0
	displaydoc@0.2.5
	doc-comment@0.3.4
	dragonbox_ecma@0.0.5
	dtoa-short@0.3.5
	dtoa@1.0.11
	dunce@1.0.5
	either@1.15.0
	elasticlunr-rs@3.0.2
	embed-resource@3.0.6
	embedded-io@0.4.0
	embedded-io@0.6.1
	encode_unicode@1.0.0
	encoding-index-japanese@1.20141219.5
	encoding-index-korean@1.20141219.5
	encoding-index-simpchinese@1.20141219.5
	encoding-index-singlebyte@1.20141219.5
	encoding-index-tradchinese@1.20141219.5
	encoding@0.2.33
	encoding_index_tests@0.1.4
	env_filter@0.1.4
	env_logger@0.11.8
	env_logger@0.9.3
	equator-macro@0.4.2
	equator@0.4.2
	equivalent@1.0.2
	errno@0.3.14
	exr@1.74.0
	fallible_collections@0.5.1
	fastrand@2.3.0
	fax@0.2.6
	fax_derive@0.2.0
	fdeflate@0.3.7
	file-id@0.2.3
	filetime@0.2.26
	find-msvc-tools@0.1.7
	flate2@1.1.5
	fnv@1.0.7
	foreign-types-shared@0.1.1
	foreign-types@0.3.2
	form_urlencoded@1.2.2
	fsevent-sys@4.1.0
	funty@2.0.0
	futf@0.1.5
	futures-channel@0.3.31
	futures-core@0.3.31
	futures-io@0.3.31
	futures-sink@0.3.31
	futures-task@0.3.31
	futures-util@0.3.31
	fxhash@0.2.1
	generic-array@0.14.7
	getrandom@0.2.16
	getrandom@0.3.4
	gh-emoji@1.0.8
	giallo@0.2.1
	gif@0.14.1
	glob@0.3.3
	globset@0.4.18
	globwalk@0.9.1
	grass@0.13.4
	grass_compiler@0.13.4
	h2@0.4.13
	half@2.7.1
	hashbrown@0.12.3
	hashbrown@0.14.5
	hashbrown@0.16.1
	heck@0.4.1
	heck@0.5.0
	hermit-abi@0.1.19
	html5ever@0.35.0
	http-body-util@0.1.3
	http-body@1.0.1
	http@1.4.0
	httparse@1.10.1
	httpdate@1.0.3
	humansize@2.1.3
	humantime@2.3.0
	hyper-rustls@0.27.7
	hyper-tls@0.6.0
	hyper-util@0.1.19
	hyper@1.8.1
	iana-time-zone-haiku@0.1.2
	iana-time-zone@0.1.64
	icu_collections@2.1.1
	icu_locale_core@2.1.1
	icu_normalizer@2.1.1
	icu_normalizer_data@2.1.1
	icu_properties@2.1.2
	icu_properties_data@2.1.2
	icu_provider@2.1.1
	idna@1.1.0
	idna_adapter@1.2.1
	ignore@0.4.25
	image-webp@0.2.4
	image@0.25.9
	imgref@1.12.0
	indexmap@1.9.3
	indexmap@2.13.0
	inotify-sys@0.1.5
	inotify@0.11.0
	insta@1.46.0
	interpolate_name@0.2.4
	ipnet@2.11.0
	iri-string@0.7.10
	is-docker@0.2.0
	is-wsl@0.4.0
	is_terminal_polyfill@1.70.2
	itertools@0.10.5
	itertools@0.14.0
	itoa@1.0.17
	jieba-rs@0.6.8
	jobserver@0.1.34
	js-sys@0.3.83
	json-escape-simd@3.0.1
	kamadak-exif@0.6.1
	kqueue-sys@1.0.4
	kqueue@1.1.1
	lasso@0.7.3
	lazy_static@1.5.0
	leb128@0.2.5
	lebe@0.5.3
	lexical-sort@0.3.1
	libc@0.2.180
	libfuzzer-sys@0.4.10
	libm@0.2.15
	libredox@0.1.12
	libwebp-sys@0.9.6
	lightningcss-derive@1.0.0-alpha.43
	lightningcss@1.0.0-alpha.68
	lindera-cc-cedict-builder@0.13.5
	lindera-core@0.13.5
	lindera-decompress@0.13.5
	lindera-dictionary@0.13.5
	lindera-ipadic-builder@0.13.5
	lindera-ipadic@0.13.5
	lindera-ko-dic-builder@0.13.5
	lindera-unidic-builder@0.13.5
	lindera@0.14.0
	linux-raw-sys@0.11.0
	litemap@0.8.1
	lock_api@0.4.14
	log@0.4.29
	loop9@0.1.5
	lru-slab@0.1.2
	lzma-rs@0.2.0
	mac@0.1.1
	maplit@1.0.2
	markup5ever@0.35.0
	match_token@0.35.0
	matches@0.1.10
	matchit@0.8.4
	maybe-rayon@0.1.1
	memchr@2.7.6
	mime@0.3.17
	mime_guess@2.0.5
	minify-html-common@0.0.3
	minify-html@0.18.1
	minimal-lexical@0.2.1
	miniz_oxide@0.8.9
	mio@1.1.1
	mockito@1.7.1
	moxcms@0.7.11
	mutate_once@0.1.2
	native-tls@0.2.14
	new_debug_unreachable@1.0.6
	nix@0.30.1
	nom-bibtex@0.6.0
	nom-language@0.1.0
	nom-tracable-macros@0.9.1
	nom-tracable@0.9.1
	nom@7.1.3
	nom@8.0.0
	nom_locate@4.2.0
	nom_locate@5.0.0
	nonmax@0.5.5
	noop_proc_macro@0.3.0
	notify-debouncer-full@0.6.0
	notify-types@2.0.0
	notify@8.2.0
	num-bigint@0.4.6
	num-conv@0.1.0
	num-derive@0.4.2
	num-format@0.4.4
	num-integer@0.1.46
	num-rational@0.4.2
	num-traits@0.2.19
	num_threads@0.1.7
	objc2-encode@4.1.0
	objc2@0.6.3
	once_cell@1.21.3
	once_cell_polyfill@1.70.2
	onig-regset@6.6.0
	onig_sys@69.9.1
	open@5.3.3
	openssl-macros@0.1.1
	openssl-probe@0.1.6
	openssl-sys@0.9.111
	openssl@0.10.75
	os_str_bytes@6.6.1
	outref@0.1.0
	outref@0.5.2
	owo-colors@4.2.3
	oxc-browserslist@2.2.0
	oxc-miette-derive@2.7.0
	oxc-miette@2.7.0
	oxc_allocator@0.95.0
	oxc_ast@0.95.0
	oxc_ast_macros@0.95.0
	oxc_ast_visit@0.95.0
	oxc_codegen@0.95.0
	oxc_compat@0.95.0
	oxc_data_structures@0.95.0
	oxc_diagnostics@0.95.0
	oxc_ecmascript@0.95.0
	oxc_estree@0.95.0
	oxc_index@4.1.0
	oxc_mangler@0.95.0
	oxc_minifier@0.95.0
	oxc_parser@0.95.0
	oxc_regular_expression@0.95.0
	oxc_semantic@0.95.0
	oxc_sourcemap@6.0.1
	oxc_span@0.95.0
	oxc_syntax@0.95.0
	oxc_traverse@0.95.0
	parcel_selectors@0.28.2
	parcel_sourcemap@2.1.1
	parking_lot@0.12.5
	parking_lot_core@0.9.12
	parse-zoneinfo@0.3.1
	paste@1.0.15
	pastey@0.1.1
	path-slash@0.2.1
	pathdiff@0.2.3
	percent-encoding@2.3.2
	pest@2.8.5
	pest_derive@2.8.5
	pest_generator@2.8.5
	pest_meta@2.8.5
	phf@0.11.3
	phf@0.13.1
	phf_codegen@0.11.3
	phf_generator@0.11.3
	phf_generator@0.13.1
	phf_macros@0.11.3
	phf_macros@0.13.1
	phf_shared@0.11.3
	phf_shared@0.13.1
	pin-project-lite@0.2.16
	pin-utils@0.1.0
	pkg-config@0.3.32
	png@0.18.0
	postcard@1.1.3
	potential_utf@0.1.4
	powerfmt@0.2.0
	ppv-lite86@0.2.21
	precomputed-hash@0.1.1
	proc-macro-error-attr@1.0.4
	proc-macro-error@1.0.4
	proc-macro2@1.0.105
	profiling-procmacros@1.0.17
	profiling@1.0.17
	ptr_meta@0.1.4
	ptr_meta_derive@0.1.4
	pulldown-cmark-escape@0.11.0
	pulldown-cmark@0.13.0
	pure-rust-locales@0.8.2
	pxfm@0.1.27
	qoi@0.4.1
	quick-error@2.0.1
	quinn-proto@0.11.13
	quinn-udp@0.5.14
	quinn@0.11.9
	quote@1.0.43
	r-efi@5.3.0
	radium@0.7.0
	rand@0.8.5
	rand@0.9.2
	rand_chacha@0.3.1
	rand_chacha@0.9.0
	rand_core@0.6.4
	rand_core@0.9.3
	rav1e@0.8.1
	ravif@0.12.0
	rayon-core@1.13.0
	rayon@1.11.0
	redox_syscall@0.5.18
	redox_syscall@0.7.0
	regex-automata@0.4.13
	regex-syntax@0.8.8
	regex@1.12.2
	relative-path@2.0.1
	rend@0.4.2
	reqwest@0.12.28
	rgb@0.8.52
	ring@0.17.14
	rkyv@0.7.46
	rkyv_derive@0.7.46
	rmp-serde@1.3.1
	rmp@0.8.15
	roff@0.2.2
	roxmltree@0.20.0
	roxmltree_to_serde@0.6.2
	rust-stemmers@1.2.0
	rustc-hash@2.1.1
	rustc_version@0.4.1
	rustix@1.1.3
	rustls-pki-types@1.13.2
	rustls-webpki@0.103.8
	rustls@0.23.36
	rustversion@1.0.22
	ryu@1.0.22
	same-file@1.0.6
	schannel@0.1.28
	scopeguard@1.2.0
	seahash@4.1.0
	security-framework-sys@2.15.0
	security-framework@2.11.1
	self_cell@1.2.2
	semver@1.0.27
	seq-macro@0.3.6
	serde-content@0.1.2
	serde@1.0.228
	serde_core@1.0.228
	serde_derive@1.0.228
	serde_json@1.0.149
	serde_spanned@1.0.4
	serde_urlencoded@0.7.1
	serde_yaml@0.9.34+deprecated
	sha1@0.10.6
	sha2@0.10.9
	shlex@1.3.0
	simd-abstraction@0.7.1
	simd-adler32@0.3.8
	simd_helpers@0.1.0
	simdutf8@0.1.5
	similar@2.7.0
	siphasher@1.0.1
	slab@0.4.11
	slug@0.1.6
	smallvec@1.15.1
	smawk@0.3.2
	socket2@0.6.1
	stable_deref_trait@1.2.1
	static_assertions@1.1.0
	string_cache@0.8.9
	string_cache_codegen@0.5.4
	strsim@0.10.0
	strsim@0.11.1
	subtle@2.6.1
	svg_metadata@0.6.0
	syn@1.0.109
	syn@2.0.114
	sync_wrapper@1.0.2
	synstructure@0.13.2
	tap@1.0.1
	tar@0.4.44
	tauri-winres@0.3.5
	tempfile@3.24.0
	tendril@0.4.3
	tera@1.20.1
	termcolor@1.4.1
	test-case-core@3.3.1
	test-case-macros@3.3.1
	test-case@3.3.1
	textwrap@0.16.2
	thiserror-impl@1.0.69
	thiserror-impl@2.0.17
	thiserror@1.0.69
	thiserror@2.0.17
	tiff@0.10.3
	time-core@0.1.6
	time-macros@0.2.24
	time@0.3.44
	tinystr@0.8.2
	tinyvec@1.10.0
	tinyvec_macros@0.1.1
	tokio-macros@2.6.0
	tokio-native-tls@0.3.1
	tokio-rustls@0.26.4
	tokio-tungstenite@0.28.0
	tokio-util@0.7.18
	tokio@1.49.0
	toml@0.9.11+spec-1.1.0
	toml_datetime@0.7.5+spec-1.1.0
	toml_parser@1.0.6+spec-1.1.0
	toml_writer@1.0.6+spec-1.1.0
	tower-http@0.6.8
	tower-layer@0.3.3
	tower-service@0.3.3
	tower@0.5.2
	tracing-core@0.1.36
	tracing@0.1.44
	try-lock@0.2.5
	tungstenite@0.28.0
	typenum@1.19.0
	ucd-trie@0.1.7
	unic-langid-impl@0.9.6
	unic-langid@0.9.6
	unicase@2.9.0
	unicode-id-start@1.4.0
	unicode-ident@1.0.22
	unicode-linebreak@0.1.5
	unicode-segmentation@1.12.0
	unicode-width@0.2.2
	unsafe-libyaml@0.2.11
	untrusted@0.9.0
	url@2.5.8
	utf-8@0.7.6
	utf8_iter@1.0.4
	utf8parse@0.2.2
	uuid@1.19.0
	v_frame@0.3.9
	vcpkg@0.2.15
	version_check@0.9.5
	vlq@0.5.1
	vsimd@0.8.0
	vswhom-sys@0.1.3
	vswhom@0.1.0
	walkdir@2.5.0
	want@0.3.1
	wasi@0.11.1+wasi-snapshot-preview1
	wasip2@1.0.1+wasi-0.2.4
	wasm-bindgen-futures@0.4.56
	wasm-bindgen-macro-support@0.2.106
	wasm-bindgen-macro@0.2.106
	wasm-bindgen-shared@0.2.106
	wasm-bindgen@0.2.106
	web-sys@0.3.83
	web-time@1.1.0
	web_atoms@0.1.3
	webp@0.3.1
	webpki-roots@1.0.5
	weezl@0.1.12
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.11
	winapi-x86_64-pc-windows-gnu@0.4.0
	winapi@0.3.9
	windows-core@0.62.2
	windows-implement@0.60.2
	windows-interface@0.59.3
	windows-link@0.2.1
	windows-result@0.4.1
	windows-strings@0.5.1
	windows-sys@0.52.0
	windows-sys@0.59.0
	windows-sys@0.60.2
	windows-sys@0.61.2
	windows-targets@0.52.6
	windows-targets@0.53.5
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_gnullvm@0.53.1
	windows_aarch64_msvc@0.52.6
	windows_aarch64_msvc@0.53.1
	windows_i686_gnu@0.52.6
	windows_i686_gnu@0.53.1
	windows_i686_gnullvm@0.52.6
	windows_i686_gnullvm@0.53.1
	windows_i686_msvc@0.52.6
	windows_i686_msvc@0.53.1
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnu@0.53.1
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_gnullvm@0.53.1
	windows_x86_64_msvc@0.52.6
	windows_x86_64_msvc@0.53.1
	winnow@0.7.14
	winreg@0.55.0
	wit-bindgen@0.46.0
	writeable@0.6.2
	wyz@0.5.1
	xattr@1.6.1
	y4m@0.8.0
	yada@0.5.1
	yoke-derive@0.8.1
	yoke@0.8.1
	zerocopy-derive@0.8.33
	zerocopy@0.8.33
	zerofrom-derive@0.1.6
	zerofrom@0.1.6
	zeroize@1.8.2
	zerotrie@0.2.3
	zerovec-derive@0.11.2
	zerovec@0.11.5
	zmij@1.0.12
	zune-core@0.4.12
	zune-core@0.5.0
	zune-inflate@0.2.54
	zune-jpeg@0.4.21
	zune-jpeg@0.5.8
"

RUST_MIN_VER="1.88.0"

inherit cargo

DESCRIPTION="A fast static site generator with everything built-in"
HOMEPAGE="https://www.getzola.org"
SRC_URI="
	${CARGO_CRATE_URIS}
	https://github.com/getzola/zola/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
"

LICENSE="EUPL-1.2"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 BSD-2 BSD CC0-1.0 CDLA-Permissive-2.0 EUPL-1.2 ISC MIT
	MPL-2.0 UoI-NCSA Unicode-3.0
	|| ( Apache-2.0-with-LLVM-exceptions Boost-1.0 )
"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	dev-libs/oniguruma
"
DEPEND="${RDEPEND}"

QA_FLAGS_IGNORED="usr/bin/${PN}"

src_prepare() {
	default
	# Disable stripping and LTO
	sed -i 's/profile.release/profile.dummy/' "${S}"/Cargo.toml
	sed -i '/\profile.dummy/a inherits = \"release\"' "${S}"/Cargo.toml
}

src_configure() {
	# Use system libraries
	export RUSTONIG_SYSTEM_LIBONIG=1

	cargo_src_configure
}