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

# Auto-Generated by cargo-ebuild 0.5.4-r1

EAPI=8

CRATES="
	addr2line@0.21.0
	adler@1.0.2
	aes@0.8.4
	ahash@0.7.8
	ahash@0.8.11
	aho-corasick@1.1.3
	allocator-api2@0.2.18
	anstream@0.6.14
	anstyle@1.0.7
	anstyle-parse@0.2.4
	anstyle-query@1.0.3
	anstyle-wincon@3.0.3
	anyhow@1.0.86
	arbitrary@1.3.2
	arrayvec@0.7.4
	async-trait@0.1.80
	auto_impl@1.2.0
	autocfg@1.3.0
	backtrace@0.3.71
	base64@0.22.1
	bitflags@1.3.2
	bitflags@2.5.0
	bitvec@1.0.1
	block-buffer@0.10.4
	bstr@1.9.1
	bumpalo@3.16.0
	bytecheck@0.6.11
	bytecheck_derive@0.6.12
	byteorder@1.5.0
	bytes@1.6.0
	bzip2@0.4.4
	bzip2-sys@0.1.11+1.0.8
	cc@1.0.98
	cfg-if@1.0.0
	cipher@0.4.4
	clap@4.5.4
	clap_builder@4.5.2
	clap_complete@4.5.2
	clap_lex@0.7.0
	colorchoice@1.0.1
	console@0.15.8
	console_static_text@0.8.2
	constant_time_eq@0.3.0
	core-foundation@0.9.4
	core-foundation-sys@0.8.6
	corosensei@0.1.4
	cpufeatures@0.2.12
	cranelift-bforest@0.91.1
	cranelift-codegen@0.91.1
	cranelift-codegen-meta@0.91.1
	cranelift-codegen-shared@0.91.1
	cranelift-egraph@0.91.1
	cranelift-entity@0.91.1
	cranelift-frontend@0.91.1
	cranelift-isle@0.91.1
	crc@3.2.1
	crc-catalog@2.4.0
	crc32fast@1.4.2
	crossbeam-channel@0.5.13
	crossbeam-deque@0.8.5
	crossbeam-epoch@0.9.18
	crossbeam-queue@0.3.11
	crossbeam-utils@0.8.20
	crossterm@0.27.0
	crossterm_winapi@0.9.1
	crypto-common@0.1.6
	darling@0.20.9
	darling_core@0.20.9
	darling_macro@0.20.9
	dashmap@5.5.3
	deflate64@0.1.8
	deno_terminal@0.1.1
	deranged@0.3.11
	derivative@2.2.0
	derive_arbitrary@1.3.2
	diff@0.1.13
	digest@0.10.7
	dirs@5.0.1
	dirs-sys@0.4.1
	displaydoc@0.2.4
	dissimilar@1.0.9
	dunce@1.0.4
	either@1.12.0
	encode_unicode@0.3.6
	enum-iterator@0.7.0
	enum-iterator-derive@0.7.0
	enumset@1.1.3
	enumset_derive@0.8.1
	equivalent@1.0.1
	errno@0.3.9
	fallible-iterator@0.2.0
	fastrand@2.1.0
	file_test_runner@0.5.1
	flate2@1.0.30
	fnv@1.0.7
	form_urlencoded@1.2.1
	fs3@0.5.0
	funty@2.0.0
	futures@0.3.30
	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
	fxhash@0.2.1
	generic-array@0.14.7
	getrandom@0.2.15
	gimli@0.26.2
	gimli@0.28.1
	globset@0.4.14
	hashbrown@0.12.3
	hashbrown@0.14.5
	hermit-abi@0.3.9
	hmac@0.12.1
	httparse@1.8.0
	ident_case@1.0.1
	idna@0.5.0
	ignore@0.4.22
	indexmap@1.9.3
	indexmap@2.2.6
	inout@0.1.3
	is_terminal_polyfill@1.70.0
	itoa@1.0.11
	jobserver@0.1.31
	js-sys@0.3.69
	jsonc-parser@0.23.0
	lazy_static@1.4.0
	leb128@0.2.5
	libc@0.2.155
	libredox@0.1.3
	linux-raw-sys@0.4.14
	lock_api@0.4.12
	lockfree-object-pool@0.1.6
	log@0.4.21
	lsp-types@0.94.1
	lzma-rs@0.3.0
	mach@0.3.2
	mach2@0.4.2
	memchr@2.7.2
	memmap2@0.5.10
	memmap2@0.6.2
	memoffset@0.9.1
	miniz_oxide@0.7.3
	mio@0.8.11
	more-asserts@0.2.2
	ntapi@0.4.1
	num-conv@0.1.0
	num_cpus@1.16.0
	object@0.32.2
	once_cell@1.19.0
	openssl-probe@0.1.5
	option-ext@0.2.0
	parking_lot@0.12.3
	parking_lot_core@0.9.10
	path-clean@0.1.0
	pbkdf2@0.12.2
	percent-encoding@2.3.1
	pin-project@1.1.5
	pin-project-internal@1.1.5
	pin-project-lite@0.2.14
	pin-utils@0.1.0
	pkg-config@0.3.30
	powerfmt@0.2.0
	ppv-lite86@0.2.17
	pretty_assertions@1.4.0
	proc-macro-error@1.0.4
	proc-macro-error-attr@1.0.4
	proc-macro2@1.0.84
	ptr_meta@0.1.4
	ptr_meta_derive@0.1.4
	quote@1.0.36
	radium@0.7.0
	rand@0.8.5
	rand_chacha@0.3.1
	rand_core@0.6.4
	rayon@1.10.0
	rayon-core@1.12.1
	redox_syscall@0.5.1
	redox_users@0.4.5
	regalloc2@0.5.1
	regex@1.10.4
	regex-automata@0.4.6
	regex-syntax@0.8.3
	region@3.0.2
	rend@0.4.2
	ring@0.17.8
	rkyv@0.7.43
	rkyv_derive@0.7.43
	rustc-demangle@0.1.24
	rustc-hash@1.1.0
	rustc_version@0.2.3
	rustix@0.38.34
	rustls@0.22.4
	rustls-native-certs@0.7.0
	rustls-pemfile@2.1.2
	rustls-pki-types@1.7.0
	rustls-webpki@0.102.4
	ryu@1.0.18
	same-file@1.0.6
	schannel@0.1.23
	scopeguard@1.2.0
	seahash@4.1.0
	security-framework@2.11.0
	security-framework-sys@2.11.0
	self_cell@1.0.4
	semver@0.9.0
	semver-parser@0.7.0
	serde@1.0.203
	serde-wasm-bindgen@0.4.5
	serde_derive@1.0.203
	serde_json@1.0.117
	serde_repr@0.1.19
	sha1@0.10.6
	sha2@0.10.8
	shared-buffer@0.1.4
	signal-hook@0.3.17
	signal-hook-mio@0.2.3
	signal-hook-registry@1.4.2
	simd-adler32@0.3.7
	simdutf8@0.1.4
	similar@2.5.0
	slab@0.4.9
	slice-group-by@0.3.1
	smallvec@1.13.2
	socks@0.3.4
	spin@0.9.8
	stable_deref_trait@1.2.0
	static_assertions@1.1.0
	strsim@0.11.1
	subtle@2.5.0
	syn@1.0.109
	syn@2.0.66
	sysinfo@0.30.12
	tap@1.0.1
	target-lexicon@0.12.14
	tempfile@3.10.1
	termcolor@1.4.1
	text-size@1.1.1
	thiserror@1.0.61
	thiserror-impl@1.0.61
	time@0.3.36
	time-core@0.1.2
	tinyvec@1.6.0
	tinyvec_macros@0.1.1
	tokio@1.37.0
	tokio-macros@2.2.0
	tokio-util@0.7.11
	tower@0.4.13
	tower-layer@0.3.2
	tower-lsp@0.20.0
	tower-lsp-macros@0.9.0
	tower-service@0.3.2
	tracing@0.1.40
	tracing-attributes@0.1.27
	tracing-core@0.1.32
	twox-hash@1.6.3
	typenum@1.17.0
	unicode-bidi@0.3.15
	unicode-ident@1.0.12
	unicode-normalization@0.1.23
	unicode-width@0.1.12
	untrusted@0.9.0
	ureq@2.9.7
	url@2.5.0
	utf8parse@0.2.1
	uuid@1.8.0
	version_check@0.9.4
	vte@0.13.0
	vte_generate_state_changes@0.1.1
	walkdir@2.5.0
	wasi@0.11.0+wasi-snapshot-preview1
	wasm-bindgen@0.2.92
	wasm-bindgen-backend@0.2.92
	wasm-bindgen-macro@0.2.92
	wasm-bindgen-macro-support@0.2.92
	wasm-bindgen-shared@0.2.92
	wasm-encoder@0.32.0
	wasmer@4.2.5
	wasmer-compiler@4.2.5
	wasmer-compiler-cranelift@4.2.5
	wasmer-derive@4.2.5
	wasmer-types@4.2.5
	wasmer-vm@4.2.5
	wasmparser@0.95.0
	wast@64.0.0
	wat@1.0.71
	webpki-roots@0.26.1
	winapi@0.3.9
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.8
	winapi-x86_64-pc-windows-gnu@0.4.0
	windows@0.52.0
	windows-core@0.52.0
	windows-sys@0.33.0
	windows-sys@0.48.0
	windows-sys@0.52.0
	windows-targets@0.48.5
	windows-targets@0.52.5
	windows_aarch64_gnullvm@0.48.5
	windows_aarch64_gnullvm@0.52.5
	windows_aarch64_msvc@0.33.0
	windows_aarch64_msvc@0.48.5
	windows_aarch64_msvc@0.52.5
	windows_i686_gnu@0.33.0
	windows_i686_gnu@0.48.5
	windows_i686_gnu@0.52.5
	windows_i686_gnullvm@0.52.5
	windows_i686_msvc@0.33.0
	windows_i686_msvc@0.48.5
	windows_i686_msvc@0.52.5
	windows_x86_64_gnu@0.33.0
	windows_x86_64_gnu@0.48.5
	windows_x86_64_gnu@0.52.5
	windows_x86_64_gnullvm@0.48.5
	windows_x86_64_gnullvm@0.52.5
	windows_x86_64_msvc@0.33.0
	windows_x86_64_msvc@0.48.5
	windows_x86_64_msvc@0.52.5
	winreg@0.52.0
	wyz@0.5.1
	yansi@0.5.1
	zerocopy@0.7.34
	zerocopy-derive@0.7.34
	zeroize@1.8.1
	zeroize_derive@1.4.2
	zip@2.1.0
	zopfli@0.8.1
	zstd@0.13.1
	zstd-safe@7.1.0
	zstd-sys@2.0.10+zstd.1.5.6
"

inherit cargo

DESCRIPTION="Pluggable and configurable code formatting platform"
HOMEPAGE="https://dprint.dev/"
SRC_URI="${CARGO_CRATE_URIS}
	https://github.com/dprint/dprint/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz "

# License set may be more restrictive as OR is not respected
# use cargo-license for a more accurate license picture
LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 CC0-1.0 ISC MIT MIT-0 MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB"
SLOT="0"
KEYWORDS="~amd64"

# rust does not use *FLAGS from make.conf, silence portage warning
# update with proper path to binaries this crate installs, omit leading /
QA_FLAGS_IGNORED="usr/bin/${PN}"

src_install() {
	cargo_src_install --path crates/dprint
}